0 Recipients Accepted
Posted: Fri Aug 10, 2007 12:37 am
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
First off, I'll echo the many previous posters who compliment the documentation. Very nicely done.
Setting up and coding for the use of Swiftmail was simple, and straightforward.
That said, I'm lost in trying to solve a problem. Normally I'm of the "look around for the answer until you're sure you can't find it, THEN ask the nice people for their help" school, and that's what I've done. Unfortunately, I'm not familiar enough with Swiftmailer or SMTP to know where else to look...
So, here's the issue:
Everything appears to run fine (see code below), no errors are generated at all. The only problem is, the e-mails don't get sent. The number of recipients accepted that is returned by batchSend is Zero.
Any suggestions? Did I forget to change some Swiftmailer config file somewhere?? Is there some server side thing I'm supposed to do?
Any help is appreciated, especially that help which describes possible fixes to me as though I know nothing about the underlying technology (because I really do know nothing about the underlying technology)
Thank you!Code: Select all
// these files make it all work!
require_once "../swift/Swift.php";
require_once "../swift/Swift/Connection/SMTP.php";
ignore_user_abort(true);
$swift =& new Swift(new Swift_Connection_SMTP("smtp.thedomain.com"));
$message =& new Swift_Message("Hello, Baby", "This is a test");
$recipients =& new Swift_RecipientList();
foreach($RecipArray as $NewRecip)
{
$recipients->addTo($NewRecip);
}
$TheNum=$swift->batchSend($message, $recipients, "address@thedomain.com");feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]