Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JavaMail Size problem  RSS feed

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like your SMTP server doesn't allow emails over 1MB. Speak to the administrator.
 
Chandu Dharmadhikari
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply

I could solve problem using authentication to SMTP Server

Cheers
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!