[PHP] MAIL And PHP Question
Hello All, Can PHP talk directly to the SMTP server, i know that there is a mail() function but this cannnot specify the reply-to and from addresses easily. How could PHP do this type of function? thanks James Lamb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] MAIL And PHP Question
I can't give you an exact answer, such as an implementation...but I would think it would have to do with opening a POP/SMTP socket connection. I know there is a class that can connect directly to SMTP on this website: http://phpclasses.upperdesign.com/ hope that helps, Chris -Original Message- From: James Lamb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 1:01 AM To: [EMAIL PROTECTED] Subject: [PHP] MAIL And PHP Question Hello All, Can PHP talk directly to the SMTP server, i know that there is a mail() function but this cannnot specify the reply-to and from addresses easily. How could PHP do this type of function? thanks James Lamb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MAIL And PHP Question
On 12 Mar 2001 21:47:44 -0800, James Lamb [EMAIL PROTECTED] wrote: Can PHP talk directly to the SMTP server, i know that there is a mail() function but this cannnot specify the reply-to and from addresses easily. Yes, but it's less work to specify reply-to and from using mail(). If you do want to do this, PHP's socket library allows you to directly connect to an SMTP server and send the appropriate commands. There are several PHP classes available which do this - search your favorite PHP code repository - if you don't want to become a lot more familar with RFC 822. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]