Chunking email recipients

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

Chunking email recipients

Patrick Larkin-3
Hello -

Our organization has chosen Google Mail as our mail service and this is having some adverse effects on my Lasso apps.  

Google has a 100 recipient limit when not using the Google web client.  (500 on the web client.)  I have an application where a user can send email to people in a database.  I used to just pull the email addresses into an array and then construct a “To” variable:

Inline grabs email addresses and then...

iterate($email_addresses, local('e'));
        var('send_to') += #e->get(1) + ',’;
/iterate;

…and then…

[Email_Send:
-to=(var:'send_to'),
-body=(include:'email.txt'),

]

This particular database over 100 people in so a lot of messages were not being delivered.  Google would reach 100 and then shut down the sending user.  

Can anyone help me with chunking these recipients in groups of like 50 and sending multiple email messages?  I’m not sure how to proceed.  




PLEASE NOTE:  My e-mail address has changed to:  [hidden email]
——
Patrick Larkin
Application Management Group
Information Technology
Bethlehem Area School District
https://www.beth.k12.pa.us


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

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: Chunking email recipients

Bil Corry-3
Not the most elegant, but this would work:

local('c') = 0;
local('send_to') = string;
iterate($email_addresses, local('e'));
  #send_to += #e->get(1) + ',’;
  #c = #c +1;
  if(#c == 99); // send 99 at a time
    email_send: ...;
    #send_to = string;
    #c = 0;
  /if;
/iterate;
email_send: ...; // anything left over gets sent here


- Bil

On Fri, Oct 31, 2014 at 4:05 PM, Patrick Larkin <[hidden email]>
wrote:

> Hello -
>
> Our organization has chosen Google Mail as our mail service and this is
> having some adverse effects on my Lasso apps.
>
> Google has a 100 recipient limit when not using the Google web client.
> (500 on the web client.)  I have an application where a user can send email
> to people in a database.  I used to just pull the email addresses into an
> array and then construct a “To” variable:
>
> Inline grabs email addresses and then...
>
> iterate($email_addresses, local('e'));
>         var('send_to') += #e->get(1) + ',’;
> /iterate;
>
> …and then…
>
> [Email_Send:
> -to=(var:'send_to'),
> -body=(include:'email.txt'),
> …
> ]
>
> This particular database over 100 people in so a lot of messages were not
> being delivered.  Google would reach 100 and then shut down the sending
> user.
>
> Can anyone help me with chunking these recipients in groups of like 50 and
> sending multiple email messages?  I’m not sure how to proceed.
>
>
>
>
> PLEASE NOTE:  My e-mail address has changed to:  [hidden email]
> ——
> Patrick Larkin
> Application Management Group
> Information Technology
> Bethlehem Area School District
> https://www.beth.k12.pa.us
>
>
> #############################################################
>
> 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]>