homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

$destination email
multiple addresses

 2:35 pm on Aug 7, 2007 (gmt 0)

Is it possible to send an email to multiple addresses using the $destination_email. For instance can it work like this:

$destination_email = "myemail@yahoo.com; youremail@yahoo.com";

or is there another way to get it to work?



 2:54 pm on Aug 7, 2007 (gmt 0)

havent tried using semicolon to separate email addresses, but a comma works well for me.

$destination_email = "myemail@yahoo.com, youremail@yahoo.com";


 3:11 pm on Aug 7, 2007 (gmt 0)

do you mean the 'to' portion of the mail function?


there are examples near the top of the page


Receiver, or receivers of the mail.

The formatting of this string must comply with RFC 2822. Some examples are:
user@example.com, anotheruser@example.com
User <user@example.com>
User <user@example.com>, Another User <anotheruser@example.com>


 5:39 pm on Aug 7, 2007 (gmt 0)

Thanks for the help. I was using a semicolon because that is what is used in outlook to separate the address. Simply using the comma worked perfect.



 6:45 pm on Aug 7, 2007 (gmt 0)

On my email app, I have the email config file emailconf.php in another directory. I enter all that information then make the call for it in the main email.php file.
Yes it is separated by commas, not semi's but I think also spaces worked the last time I had an app doing this for me too but can't confirm.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved