SMTPException: Failure sending mail
Posted on 2009-03-30
In my asp.net 3.5 web application, I try to send email to multiple persons (almost 100) using for loop.
It works fine when email has no attachment. But, when email contains the large size attachment (300 KB), after sending 25 emails, it gives a smtpexception:"Failure sending mail".
I have tried using different size of attchment files and I noticed that its giving an exception when the email attachment size reached about 7 MB. (total size of the emails sent with attachment).
What should I do to resolve this problem?