Sending 1000+ Emails

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Sending 1000+ Emails

Marc Pinnell-3
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 != '[hidden email]') => {
                        email_send(
                                -host = 'mail.mailserver.com',
                                -username = $emailserveruser,
                                -password = $emailserverpwd,
                                -to      = #members,
                                -from    = '[hidden email]',
                                -replyTo = #senderEmail,
                                -subject = $emSubject,
                                -html    = $emBody
                        )
                }
        }
}


TIA,
Marc

====================
Marc Pinnell
Director of Web Services
[hidden email]
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 [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Sending 1000+ Emails

Steffan Cline
Is this on a Mac?

Thanks,
Steffan Cline
[hidden email]
602-793-0014

> On Sep 23, 2016, at 7:13 AM, Marc Pinnell <[hidden email]> wrote:
>
> 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 != '[hidden email]') => {
>            email_send(
>                -host = 'mail.mailserver.com',
>                -username = $emailserveruser,
>                -password = $emailserverpwd,
>                -to      = #members,
>                -from    = '[hidden email]',
>                -replyTo = #senderEmail,
>                -subject = $emSubject,
>                -html    = $emBody
>            )
>        }
>    }
> }
>
>
> TIA,
> Marc
>
> ====================
> Marc Pinnell
> Director of Web Services
> [hidden email]
> 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 [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Sending 1000+ Emails

Marc Pinnell-3
CentOS 5.5

Marc


On Sep 23, 2016, at 7:15 AM, Steffan Cline <[hidden email]> wrote:

> Is this on a Mac?
>
> Thanks,
> Steffan Cline
> [hidden email]
> 602-793-0014
>
>> On Sep 23, 2016, at 7:13 AM, Marc Pinnell <[hidden email]> wrote:
>>
>> 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 != '[hidden email]') => {
>>           email_send(
>>               -host = 'mail.mailserver.com',
>>               -username = $emailserveruser,
>>               -password = $emailserverpwd,
>>               -to      = #members,
>>               -from    = '[hidden email]',
>>               -replyTo = #senderEmail,
>>               -subject = $emSubject,
>>               -html    = $emBody
>>           )
>>       }
>>   }
>> }
>>
>>
>> TIA,
>> Marc
>>
>> ====================
>> Marc Pinnell
>> Director of Web Services
>> [hidden email]
>> 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 [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


====================
Marc Pinnell
Director of Web Services
[hidden email]
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 [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Sending 1000+ Emails

bienvenue
Hello list

to send large email batches we use "email_smtp". While in the Lasso 8.6 scope, the tag is still live for Lasso 9.

Emails data are saved first with sender and recipients in our own queue database, and then email datas are gathered to be sent directly through an open SMTP connection with email_smtp->send
To prepare emails, you could also use Email_compose

A smart way to get rid of problems with Lasso email tags which get stucked when too many mails are sent...

My two cents !
---
Jean-Pierre Kocherhans
E SYSTEMES
F- 59000 Lille
---
Nous sommes responsables de l'Environnement.
Merci d'y penser encore avant d'imprimer ce message.
Ce message est transmis sur internet, rien de ce qui transite sur internet ne peut-être vraiment confidentiel. Ne l'oubliez pas !
--
Please consider our environmental responsibility before printing this message. This mail is sent over the internet network, nothing can really be confidential while using this way. Do not forget it.

Le 23 sept. 2016 à 16:37, Marc Pinnell <[hidden email]> a écrit :

> CentOS 5.5
>
> Marc
>
>
> On Sep 23, 2016, at 7:15 AM, Steffan Cline <[hidden email]> wrote:
>
>> Is this on a Mac?
>>
>> Thanks,
>> Steffan Cline
>> [hidden email]
>> 602-793-0014
>>
>>> On Sep 23, 2016, at 7:13 AM, Marc Pinnell <[hidden email]> wrote:
>>>
>>> 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 != '[hidden email]') => {
>>>          email_send(
>>>              -host = 'mail.mailserver.com',
>>>              -username = $emailserveruser,
>>>              -password = $emailserverpwd,
>>>              -to      = #members,
>>>              -from    = '[hidden email]',
>>>              -replyTo = #senderEmail,
>>>              -subject = $emSubject,
>>>              -html    = $emBody
>>>          )
>>>      }
>>>  }
>>> }
>>>
>>>
>>> TIA,
>>> Marc
>>>
>>> ====================
>>> Marc Pinnell
>>> Director of Web Services
>>> [hidden email]
>>> www.shasta.com                                    
>>> 833 Mistletoe Lane, Suite A1
>>> Redding, CA  96002
>>> 530-224-6866  Ext. 100
>>> 530-224-2035 Fax
>>>
>>>
>
>
> ====================
> Marc Pinnell
> Director of Web Services
> [hidden email]
> 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 [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>