Home > Archive > PHP Language > October 2004 > Mail Authentication
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mail Authentication
|
|
|
| Is there a way to post authentication settings with the mail()
function for sending emails out through a server that requires login?
| |
| Michael Vilain 2004-10-23, 3:55 am |
| In 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...
| |
| Manuel Lemos 2004-10-23, 3:55 am |
| 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
|
|
|
|
|