Smtp Auth Email Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ryanbednar
Forum Newbie
Posts: 2
Joined: Fri Dec 08, 2006 1:16 pm

Smtp Auth Email Script

Post by ryanbednar »

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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

You might want to take a look at Swiftmailer. It got its own forum here, viewforum.php?f=52
ryanbednar
Forum Newbie
Posts: 2
Joined: Fri Dec 08, 2006 1:16 pm

Thanks

Post by ryanbednar »

Thanks for the tip... I'll check it out!

~Ryan
Post Reply