Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

$destination email

multiple addresses



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

5+ Year Member

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)

5+ Year Member

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)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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)

5+ Year Member

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)

10+ Year Member

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.

Featured Threads

Hot Threads This Week

Hot Threads This Month