Not LLBL Related. Smtp Question

Posts   
 
    
MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 15-Oct-2007 22:44:11   

Not LLBL related, but I figured this would be a good place to start. I've written an articles module and I am in the process of integrating an e-mail notification system. Let's say I need to send out 1000 e-mails whenever an action point takes place, for example a user posting a comment about the article. Is it more efficient to create 1000 seperate mail message object instances (of course on a separate thread) and send out each email individually or create one mail message object and add 1000 recipients? I haven't found any documentation on if there is a max limit of recipients.

Thanks

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 16-Oct-2007 01:33:42   

as a security measure I would send each one individually. you could also use BCC for this as well.

Max avatar
Max
User
Posts: 221
Joined: 14-Jul-2006
# Posted on: 16-Oct-2007 14:28:18   

Use a single message is more efficient, but the max number of recipients for each single message is a parameter that change for each smtp server. This parameter is a limit imposed by the system administrator that manage the smtp server.

If you use the same server for all the e-mail, you can try to send a message with 10/50/100/200/400... to find the limit. We use this approach in our e-mailing solution. So, if the server has a maximum recipients number of 50; and we need to send the same message to 500 recipients, we create 10 message with 50 recipients each.

We use the BCC field to define the recipient list, because we don't want that the recipients know the e-mails of the other recipients.

MarcoP avatar
MarcoP
User
Posts: 270
Joined: 29-Sep-2004
# Posted on: 16-Oct-2007 20:46:54   

thank you both.