smtp authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    smtp authentication

    I am trying to use the mail function to send email. My ISP requires
    authentication. What do I need to add to the mail function to make it work?

    mail($to, $subject, $msg, $mailheaders);

    Thank you...

    Bruce A. Julseth


  • Jochen Buennagel

    #2
    Re: smtp authentication

    bruceaj@attglob al.net wrote:
    [color=blue]
    > I am trying to use the mail function to send email. My ISP requires
    > authentication. What do I need to add to the mail function to make it work?[/color]

    mail() doesn't use a SMTP server but tries to send mail direct, calling
    the sendmail program installed on the server or something similar.

    For SMTP(Auth) access I suggest using the phpMailer class.


    Jochen

    --
    /**
    * @author Jochen Buennagel <zang at buennagel dot com>
    */

    Comment

    • Manuel Lemos

      #3
      Re: smtp authentication

      Hello,

      On 08/23/2003 10:41 AM, bruceaj@attglob al.net wrote:[color=blue]
      > I am trying to use the mail function to send email. My ISP requires
      > authentication. What do I need to add to the mail function to make it work?
      >
      > mail($to, $subject, $msg, $mailheaders);[/color]

      The mail function does not support authentication. Youy may want try
      this class for composing and sending e-mail messages that comes with a
      wrapper function named smtp_mail() that emulates the mail() function.
      You can configure several parameters that you are not allowed with the
      mail() function, like for instance the authentication credentials as you
      need.



      You also need this for the actual message delivery:



      --

      Regards,
      Manuel Lemos

      Free ready to use OOP components written in PHP


      Comment

      Working...