How to avoid resending emails or missing emails in this case? [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this questiondataContext.saveSend(true);
SendEmailsToAllMembers();
I have the code above, if after half of the emails were sent out, there is a error in smtp, then how can I avoid resending emails or missing emails in this cases ?
Inside the SendEmailsToAllMembers you could store which emails have been successfully sent to. Repeat calls to the method could check if this email has already been sent successfully and therefore not resend it.
精彩评论