Persistent connection
Moderators: Chris Corbyn, General Moderators
-
Kaitlyn2004
- Forum Newbie
- Posts: 15
- Joined: Wed May 30, 2007 7:46 am
Persistent connection
If I want to send a different message to multiple subscribers, can SwiftMailer do this? Or does it need to reconnect for each e-mail?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Persistent connection
What if I do this:
$swift =& new Swift(new Swift_Connection_SMTP("smtp.your-host.tld"));
//Create the message
$message =& new Swift_Message("My subject", "My body");
$swift->send($message, "foo@bar.tld", "me@mydomain.com");
$swift2 =& new Swift(new Swift_Connection_SMTP("smtp.your-host.tld"));
//Create the message
$message2 =& new Swift_Message("My subject", "My body");
$swift2->send($message, "foo@bar.tld", "me@mydomain.com");
Will I get two connections?
$swift =& new Swift(new Swift_Connection_SMTP("smtp.your-host.tld"));
//Create the message
$message =& new Swift_Message("My subject", "My body");
$swift->send($message, "foo@bar.tld", "me@mydomain.com");
$swift2 =& new Swift(new Swift_Connection_SMTP("smtp.your-host.tld"));
//Create the message
$message2 =& new Swift_Message("My subject", "My body");
$swift2->send($message, "foo@bar.tld", "me@mydomain.com");
Will I get two connections?