Can I confirm this would be correct:
Code: Select all
$file_path = " /home/addictive/public_html/mailattachers/";
$file_type = "doc";
$file_name = $myfilename;Code: Select all
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/Sendmail.php";
// $swift =& new Swift(new Swift_Connection_SMTP("smtp.host.tld"));
$message =& new Swift_Message("My subject", "My body");
$recipients =& new Swift_RecipientList();
$recipients->addTo("joe@bloggs.tld");
$recipients->addTo("zip@button.tld");
//NOTE that Cc and Bcc recipients are IGNORED in a batch send
$swift->batchSend($message, $recipients, "my@address.com");
$recipients->addTo("joe@bloggs.tld");
$recipients->addTo("zip@button.tld");the
Code: Select all
$recipients =& new Swift_RecipientList();Many thanks for any help