After 11 emails I get the following error.
Insufficient system storage. The server response was: 4.1.0 Too many emails sent on this session
I read enough to know that this is a common error with the logic I am using, but most people comment the threshold is 100 emails.. 100 would be fine, as I have to send out about 83 - 90..
But my email list could grow.
So is there a different method I should be using? If not is there something I can do to get my threshold up to at least 100?
Below is the code I am using.
for (int idx = 0; idx < lstUnitInfo.Count; idx++)
mMailMessage = new MailMessage();
// Set the sender address of the mail message
mMailMessage.From = new MailAddress("firstname.lastname@example.org");
string setSubject = "";
sglUnitInfo = lstUnitInfo[idx];
// Set the recepient address of the mail message
setSubject = "Training Information for " + sglUnitInfo.UnitType +
" " + sglUnitInfo.UnitNo;
mMailMessage.Subject = setSubject;
//The To: recipient.. attach
if (NormalTest == "Test")
for (int i = 0; i < 2; i++)
if (sglUnitInfo.Email[i] != null && sglUnitInfo.Email[i].IndexOf("@") != -1)
mMailMessage.Body = fullBody;
// this is if through IIS
//SmtpClient mSmtpClient = new SmtpClient("localhost");
// Instantiate a new instance of SmtpClient
SmtpClient mSmtpClient = new SmtpClient("smtp.comcast.net");
// Send the mail message
mSmtpClient = null;
if (attachmentmsg1 != null)
if (mMailMessage != null)