Sending e-mail via PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Domin

    Sending e-mail via PHP

    Hi

    Is there possible to send e-mail from simple form when the server doesn't
    have a domain name, and in the internet only can be seen using it IP address
    ? The mail() function will work correctly ?
    And if not what would you suggest ?

    Regards

    Domin


  • Johan Holst Nielsen

    #2
    Re: Sending e-mail via PHP

    Domin wrote:[color=blue]
    > Hi
    >
    > Is there possible to send e-mail from simple form when the server doesn't
    > have a domain name, and in the internet only can be seen using it IP address
    > ? The mail() function will work correctly ?
    > And if not what would you suggest ?[/color]

    There is a nice PHP PEAR class for sending mail using SMTP :)



    Regards,
    Johan

    Comment

    • Domin

      #3
      Re: Sending e-mail via PHP

      Thank you.
      I'll try it.

      Domin


      Comment

      • Alvaro G Vicario

        #4
        Re: Sending e-mail via PHP

        *** Domin wrote/escribió (Thu, 27 Nov 2003 07:39:42 +0100):[color=blue]
        > Is there possible to send e-mail from simple form when the server doesn't
        > have a domain name, and in the internet only can be seen using it IP address
        > ? The mail() function will work correctly ?[/color]

        All you need is a working SMTP server you have permission to use. It can be
        a local server or a remote one. If you have a local server without a domain
        name it won't be able to *receive* mail, but it'll certainly send it.

        --
        --
        -- Álvaro G. Vicario - Burgos, Spain
        --

        Comment

        • Manuel Lemos

          #5
          Re: Sending e-mail via PHP

          Hello,

          On 11/27/2003 04:39 AM, Domin wrote:[color=blue]
          > Is there possible to send e-mail from simple form when the server doesn't
          > have a domain name, and in the internet only can be seen using it IP address[/color]

          You can, but many servers will reject or discard the messages you send.

          [color=blue]
          > ? The mail() function will work correctly ?
          > And if not what would you suggest ?[/color]

          You can always try this class that comes with a wrapper function named
          smtp_mail() that acts exactly like the mail() except that it sends the
          messages directly to a SMTP server of the recipients using the direct
          delivery mode.




          --

          Regards,
          Manuel Lemos

          Free ready to use OOP components written in PHP


          Comment

          Working...