Sending to multiple emails without a name

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
LiveFree
Forum Contributor
Posts: 258
Joined: Tue Dec 06, 2005 5:34 pm
Location: W-Town

Sending to multiple emails without a name

Post by LiveFree »

Hello d11,

I've just started using Swift, and Im amazed at the quality of your product. Only god knows what you can do when you committ to it.

Anyways, say I just have a plain list of emails (sperated by ';'). I want to send each one of them an email, but without having all of their emails in the 'To' field of the messages (like your tutorial on mailing list-sending).

Would this work?

Code: Select all

<?php
$emails = stripslashes($_POST['emails']);
$list = explode(';', $emails);
#Instantiate Swift stuff
$swift->send($list, 'All the other required information');
?>
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

why don't you give it a try?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yes it would work :)
Post Reply