Saturday, March 24, 2012

SmtpClient messages size limit?

I have a rather odd occurence. I have some code that we are going to be used for send out our enewsletter. For speed purposes I am using the System.Net.Mail.SmtpClient and setting its SmtpDeliveryMethod toSmtpDeliveryMethod.SpecifiedPickupDirectory.

While running some tests I have created a fairly large number of emails (one of our eNewsletters has 11,000 subscribers). What I have bumped up against is that it writes the emails to the temporary directory fine, but once that directory reaches ~1 gig it throws an SmtpError - GeneralFailure
There is not enough space on the disk.

There is plenty of space on the disk, and it is not the OS Disk. I have tested this with a variety of different formats and this does not appear to have anything to do with the number of messages, just the total size. It does not appear to matter if there are attachments or not.

For the most part I do not expect to bump up against this limit anytime soon (the 11,000 member only sends emails of approx 55k), but I may eventually, esp when attachments start getting added into the mix.

Anybody have any idea what could be triggering this? Again - I am NOT using the SMTP server at all.

thanks,

m

I would recommend checking:System.Net.Mail

It is a huge reference for sending emails in ASP.NET 2.0

Hope this helps,

Regards

0 comments:

Post a Comment