Best way to handle mass mail in C #

What would be the best way to send bulk emails to specific lists. For instance. the user requests a service from a service category. I get 200-20000 matching emails for user criteria and send a request to users to recipients.

I did some research, but am not sure what would be the best solution for this task.

Method 1, use multiple threads to allow multiple SMTP clients to send mail (not sure if I send it to a large number of recipients if it kills the server with all threads) http://www.aspsnippets.com/Articles/Send-Bulk- Mass-Email-in-ASPNet-using-C-and-VBNet.aspx

Method 2, use a service such as sendgrid to manage email messages. (I see that in marketing campaigns you can manage lists / contacts. Just not sure if you can dynamically generate content for a template and send to a specific list) https://sendgrid.com/docs/API_Reference/Web_API_v3/Marketing_Campaigns/contactdb .html

Any advice would be greatly appreciated!

+4
source share
1 answer

You have many different ways.

The first method that we use, and, in my opinion, is the best, but you need to use a database to store data and to write code to execute:

  • "EmailLogs"

ProfileName, Body, Subject, [To], CC, BCC, IsActive, QueuedOn, SentOn

  1. ClearEmailLogs 50- , IsActive=1 SentOn getdate()
  2. SQL- 10
  3. EmailLogs

_: , , noreply@yourdomain.com info@yourdomain.com, SQL- ,

50 10 ? , , , yahoo google... .., .

-, , , .

, .

+2

Source: https://habr.com/ru/post/1654414/


All Articles