Smtp Auth Email Script
Posted: Fri Dec 08, 2006 1:33 pm
Hey Everyone,
I'm new to this forum (and PHP for that matter), and I'm trying to come up with a solution for a client of mine. A previous developer wrote some PHP script that automatically emails the user with a quote for buying a home.
Anyways, the code used the mail() function to send this email, but many customers were not receiving the emails because it did not use Smtp Auth to send the email. To make a long story short, I found a very useful script at http://codewalkers.com/seecode/538.html, and it works great for sending to one recipient, however, I need the outgoing mail to be sent to two recipients.
Can anyone take a look at the code in the link above and let me know if there's a fairly simple way to adapt this code to be sent to two recipients? I tried to just add another address separated by a comma, but I got a parse error message for that line, explaining that the comma was unexpected.
As mentioned earlier, my PHP abilities pretty much suck, so any help is greatly appreciated. Thanks again!
~Ryan
I'm new to this forum (and PHP for that matter), and I'm trying to come up with a solution for a client of mine. A previous developer wrote some PHP script that automatically emails the user with a quote for buying a home.
Anyways, the code used the mail() function to send this email, but many customers were not receiving the emails because it did not use Smtp Auth to send the email. To make a long story short, I found a very useful script at http://codewalkers.com/seecode/538.html, and it works great for sending to one recipient, however, I need the outgoing mail to be sent to two recipients.
Can anyone take a look at the code in the link above and let me know if there's a fairly simple way to adapt this code to be sent to two recipients? I tried to just add another address separated by a comma, but I got a parse error message for that line, explaining that the comma was unexpected.
As mentioned earlier, my PHP abilities pretty much suck, so any help is greatly appreciated. Thanks again!
~Ryan