It's not that i
want to embed 404-urls... i don't want my user to worry about images

(internally nor externally)
Using Swiftmailer to send user generated e-mails (from a WYSIWYG editor) it's possible to have anything (from links, to images, to whatever kinds of HTML elements) in that mail.. Right now it's not possible to see if the e-mail is sent or not because the send()-function always returns true even though it exited whilst loading in the 404 `image`.
(hope i'm clear enough, english is not my native tongue)
BTW in one of your many (cudo's) tutorials i came across the following example:
Code: Select all
// straight from the `plugin_decorator`-tutorial
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
require_once "lib/Swift/Plugin/Decorator.php";
//Instantiate Swift as usual
$swift =& new Swift(new Swift_Connection_SMTP("your-server.tld"));
//Create the message, using some unique variables to search for
$message =& new Swift_Message("Hey {name}, what's up?", "It's a bit {weather} today wouldn't you say?");
//Specify the list of replacements as a 2-d array
$replacements = array(
"joe@bloggs.com" => array("{name}" => "Joe", "{weather}" => "chilly"),
"fred@perry.com" => array("{name}" => "Fred", "{weather}" => "muggy")
);
//Load the plugin with these replacements
$swift->attachPlugin(new Swift_Plugin_Decorator($replacements), "decorator");
//Send messages
$swift->send($message, "fred@perry.com", "you@your-address.com");
$swift->send($message, "joe@bloggs.com", "you@your-address.com");
$swift->disconnect();
my question is: am i going at this correctly if i wanted to send it using a RecipientList(); instead of sending it to the subscribers using send($message, $email, $from) ? (i.e. when sending it to 10K recipients)