Jump to content


Photo

smtp authentication


  • Please log in to reply
1 reply to this topic

#1 lional

lional
  • Members
  • PipPipPip
  • Advanced Member
  • 266 posts

Posted 05 October 2006 - 07:47 AM

Hi All
I need a bit of help
I wrote a script to send mails using the php mail function. This was working fine until the service providers changed their security policies.
The say I must add smtp authentication to my script, is this possible

Appreciate any help

Thanks

Lional

#2 JaGeK

JaGeK
  • Members
  • PipPip
  • Member
  • 20 posts
  • LocationNRW, Germany

Posted 05 October 2006 - 03:43 PM

The say I must add smtp authentication to my script, is this possible


If you want to use the mail() function, you have to set sendmail_path pointing to a sendmail program that supports SMTP authentication (probably the one you are currently using does and you have only to configure it).

An other option is using the PHPMailer class which is able to send mails with SMTP authentication independent of PHP's mail function.

-> http://phpmailer.sourceforge.net/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users