Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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!