Trying to determine how many messages are being sent

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
joe558
Forum Newbie
Posts: 6
Joined: Mon Feb 04, 2008 5:44 pm

Trying to determine how many messages are being sent

Post by joe558 »

Hi,

I've been using SwiftMailer successfully for the past couple months to send large batches (up to 150,000 in one go) and I'm now trying to determine how many messages are actually being sent. So basically I do something like this:

$num_sent = $swift->batchSend($message, $recipients, $from);

And I know in the docs it says that this number is how many recipients were accepted for delivery at the server. So the question is what is the possibility that addresses are accepted by the smtp server but not actually being sent? Anyone know a way to check this?

Thanks
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Trying to determine how many messages are being sent

Post by Chris Corbyn »

Extremely possible. Some SMTP servers which merely act as relays (e.g. the ones provided by your ISP) will only check for syntax errors in the address. The rest is left down to bouncing to occur. Not really much Swift (version 3) can do about that unfortunately since it's done it's job of telling the SMTP server to send the mail.
Post Reply