This is a discussion on Mail Authentication within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is there a way to post authentication settings with the mail() function for sending emails out through a server that ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
On 10/22/2004 07:13 PM, bvh wrote: > Is there a way to post authentication settings with the mail() > function for sending emails out through a server that requires login? No, the mail() function does not support setting the authentication. You mayu want to use this class that comes with a wrapper function named smtp_mail() that works exactly like the mail() function but lets you set the SMTP authentication credentials, so you can solve your problem with minimal changes in your scripts (just change mail() calls to smtp_mail() ). http://www.phpclasses.org/mimemessage You also need these other classes for the actual SMTP delivery and to perform SMTP authentication: http://www.phpclasses.org/smtpclass http://www.phpclasses.org/sasl -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html |
![]() |
| Thread Tools | |
| Display Modes | |
|
|