0 votes

Hello and have a happy new year. Can you please help me with my question. I have maill.dll and i need to send newsletters to thousands of receipients. I am using gmail as smtp server. Which is the best approach to do that . Can you help me with some vb.net code? I can not find any async method to mail.dll . Am I right?
And one more thing. Is it possible through mail.dll to schedule the send after x hours or should i do it programmatically?

by

1 Answer

0 votes

Bulk message sending is a complex task. Mail.dll library supports all email protocols that are required to achieve this task, however it doesn't offer out-of-the-box solution.

What you get out of the box are:
- Email templates,
- SMTP component and IMAP component,
- Bounced email recognition
- VERP - for easier bounced email recognition

You sould make sure that your email provider (Gmail) allows you to do that: https://support.google.com/a/answer/166852, https://support.google.com/mail/answer/81126).

Mail.dll doesn't include any kind of scheduler. You should create a separate thread that is responsible solely for sending message. I'd use a queue to communicate with that thread. Remember that sending thread may experience network outage, or SMTP server problems and must be able to wait for some time and reconnect, without loosing any data.

by (297k points)
...