note 27004 added to function.mail
| From: | lethain at hotmail dot com | Date: | Wed, 20 Nov 2002 07:34:44 +0000 |
| Subject: | note 27004 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39738@lists.php.net to get a copy of this message | ||
In addition to the SMTP code listed by GreyWyvern, it will be useful to add the following lines if
your SMTP requires authentication:
fputs ($connect, "AUTH LOGIN"."\r\n");
fputs ($connect, base64_encode($user_id)."\r\n");
fputs ($connect, base64_encode("$user_password")."\r\n");
I hope this saves someone's time.
Lethain
--
http://www.php.net/manual/en/function.mail.php
http://master.php.net/manage/user-notes.php?action=edit+27004
http://master.php.net/manage/user-notes.php?action=delete+27004
http://master.php.net/manage/user-notes.php?action=reject+27004