SmtpClient cannot send email with size greater than 15 MBs, while manually (from outlook) can send with the same account and configuration

  • Thread starter Thread starter AA.Amit
  • Start date Start date
A

AA.Amit

Guest
I'm working on winform application (c# .Net 4.6)

In my code, there is a module which sends an email (with attachment)

Now, one of our client is facing an issue where if attachment is greater than 15 MBs, mail is not being sent while all mails with attachment less than 15 MBs are being sent successfully.

He has confirmed that max size limit for an email is set to 50 MBs by his administrator, And Also He is able to send such larger attachment using outlook (with same account and configuration).


There is no error while performing the following line, but soon after sending he gets an e-mail from mail server that mail cannot be sent as it is larger than allowed.

smtpClinet.Send(mailMessage);


what can be the possible issue in this case?

Continue reading...
 
Back
Top