Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-16-2005, 07:48 AM   #1 (permalink)
 
Newb Techie

Join Date: Sep 2005

Posts: 10

hytechpro

Default sending multiple mails

i want to know how to send emails to multiple email addresses using PHP code

http://www.hytechpro.com
hytechpro is offline  
Old 09-18-2005, 01:48 PM   #2 (permalink)
 
Newb Techie

Join Date: Sep 2005

Posts: 21

Ross

Send a message via AIM to Ross
Default

Using the mail function, mail(), you can just input multiple addresses in the 'to' parameter. For example:

PHP Code:
mail("bla@bla.com, [email]bla2@bla.com[/email], [email]bl3@bla.com[/email]"$subject$message); 
This would send it to three addresses. The address have to be seperated by commas inside the string (inside the quotes). The space after the comma is optional but I put it there for readibility (lmao is that a word?). Anyways, that should work.
Ross is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On