Computing.Net > Forums > Web Development > sending multiple mails

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

sending multiple mails

Reply to Message Icon

Original Message
Name: hytechpro
Date: September 26, 2005 at 03:16:50 Pacific
Subject: sending multiple mails
OS: Windows XP
CPU/Ram: 256 MB
Comment:

I want to know how to send mails to multiple email addresses using PHP code.

Thanks.

http://www.hytechpro.com


Report Offensive Message For Removal


Response Number 1
Name: Stephen Hall
Date: September 26, 2005 at 03:37:16 Pacific
Reply: (edit)

Vishal,

Try the mail() function. Just call it multiple times or query it off of a db in a loop.

Stephen

"Live long and PROGRAM......or at least do _something_ with all that time...!"


Report Offensive Follow Up For Removal

Response Number 2
Name: SN
Date: September 26, 2005 at 21:36:12 Pacific
Reply: (edit)

You probably only need to call it once - just comma-delimit the addresses in the first parameter of the mail function:

mail("SN@computing.net,vishal@computing.net", "subject", "message");

Good luck,
-SN


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software