Code Comments
Programming Forum and web based access to our favorite programming groups.Is there a way to post authentication settings with the mail() function for sending emails out through a server that requires login?
Post Follow-up to this messageIn article <nd1jn0t01r86j2p81ki2qikc3krjn13o35@4ax.com>, bvh <nospam@nospam.com> wrote: > Is there a way to post authentication settings with the mail() > function for sending emails out through a server that requires login? No, there isn't. You have to use the PEAR Mail module. The smtp "factory" function allows for authentication while the php mail() function does not. -- DeeDee, don't press that button! DeeDee! NO! Dee...
Post Follow-up to this messageHello, 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.