Page 1 of 1

Sending to multiple emails without a name

Posted: Fri Dec 01, 2006 5:13 pm
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');
?>

Posted: Fri Dec 01, 2006 5:18 pm
by Luke
why don't you give it a try?

Posted: Fri Dec 01, 2006 6:11 pm
by Chris Corbyn
Yes it would work :)