Sending/ tracking Batch mails

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
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Sending/ tracking Batch mails

Post by kendall »

Hi,

I want to attempt using SwiftMailer to send "periodic" batches of emails however I want to output a status indicating whether or not the transaction was successful for each sent mail... plus i need to update the database of these successful and failed mails

Now the batches of email can range into the 1000s so i will have to use the flush methods to send the batches at intervals
and i can get the failed address afterwards using getFailedREcipients

but is there any way to emit whether the transaction has failed or succeeded? (i'm thinking about using ajax to trigger the execution);

is there anyway to do this...what is the onSend handle do?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Try the plugin in this thread: viewtopic.php?p=301240#301240

:)
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

Thanks man...
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

I was trying out your application code when i got an error
Fatal error: Interface 'Swift_IPlugin'
i'm looking through the documentation to see what's this about

so i skimmed over the documentation and edit the swift php to have the interface implementation

but i start to get calls to undefined methods

so i used EasySwift.php

im now getting calls to undefined property $logs
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Oh, are you using Version 3? That plugin won't work for version 3. The plugin API has changed. Sorry, I didn't realise you were on v3 :)
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post by kendall »

Yeah...kinda figured that out...reverted to 2.1.17

im getting a succesful attempt to send the mail...but im now getting a Relay denied error. So i'm still not receiving the mail. Working with my ISP to see whats up

thanks anyways

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

Post by Chris Corbyn »

Relay denied suggests you're connecting to the SMTP server of a different ISP to your host.
Post Reply