Sep 23, 2016; 07:13
Marc Pinnell
Sending 1000+ Emails
Hey all,
Using the code below, I generate and send 1000+ emails as a broadcast to members of a soccer referee registration website. Script runs fine and the emails are generated and placed into the email queue (L9.2.7). However, the queue seems to get stuck about halfway through and stops sending mail. Only a restart of the instance gets things flowing again.
If I run the code without the "email_batch" command, the email all flows through without a hitch. However, that means the processing page sits for about 10 minutes while it chews through sending the mail. Not a good user experience obviously.
In the case below all the messages are identical. On another "page" I send 1000+ unique emails (schedules for each referee). That second page runs as a cron without a batch command and it runs fine without getting stuck.
Am I using the batch correctly? Is this is a L9 bug?
email_batch => {
with members in $EmailList do {
if(#members != 'none@none.com') => {
email_send(
-host = 'mail.mailserver.com',
-username = $emailserveruser,
-password = $emailserverpwd,
-to = #members,
-from = 'info@domain.com',
-replyTo = #senderEmail,
-subject = $emSubject,
-html = $emBody
)
}
}
}
TIA,
Marc
===================Marc Pinnell
Director of Web Services
marcp@shasta.com
www.shasta.com
833 Mistletoe Lane, Suite A1
Redding, CA 96002
530-224-6866 Ext. 100
530-224-2035 Fax
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>