mail()

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
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

mail()

Post by Jim_Bo »

Hi,

Trying to send to multiple emails using the mail() function along with html email ..

The email addresses are stored in the database as first@email.com;second@email.com.

Have had no luck getting it to mail out to more than one address.

Is mail capable of multiple emails?


Thanks
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Post by impulse() »

If I remember reading a post similar to yours the other day correctly, then unfortunatly not. Somebody did mention Swiftmailer is capable of such thing.

Stephen,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yes, mail() can send to multiple addresses, but it will often take a long time. Swift is far faster and better for such a situation.
Jim_Bo
Forum Contributor
Posts: 390
Joined: Sat Oct 02, 2004 3:04 pm

Post by Jim_Bo »

Hi,

its only gunna be 2 emails addresses that will get the form results, is swift mailer wourth the effort for 2 addresses vers. mail()


Thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Jim_Bo wrote:Hi,

its only gunna be 2 emails addresses that will get the form results, is swift mailer wourth the effort for 2 addresses vers. mail()


Thanks
Yes and no. No if the emails are nothing more than some administrative notification. Yes if you don't know who the recipients are since it's difficult to craft correctly formed emails for sending with mail.
Post Reply