Forums Register Login
JavaMail Size problem
Hi All

I've written a command line program to send mail with attachment using SMTP. Program works fine when we send attachment less than 1 MB but throws an exception following when we increase size more than 1 MB.

If anybody can help, Plz tell me how to increase size for attachment.

javax.mail.SendFailedException: Sending failed; nested exception is:
javax.mail.MessagingException: 552 4.3.1 Message size exceeds fixed maximum message size

at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at SendMailAttachment.main(SendMailAttachment.java:60)
Thanks in Advance :roll:
Looks like your SMTP server doesn't allow emails over 1MB. Speak to the administrator.
Thanks for reply

I could solve problem using authentication to SMTP Server

Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 2586 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jun 21, 2018 06:29:16.