This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error: Message is not RFC compliant  RSS feed

 
Ratheesh Narayanan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing a small Java component which will send emails with the help of Velocity 1.4 and JavaMail 1.3. When I run the program I am getting an error like:

javax.mail.MessagingException: 554 Message is not RFC compliant

I had spend my several hours in Google searching this, but no luck.
Kindly help me to resolve this.

Thanks
Ratheesh
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us how you create the message?
 
Ratheesh Narayanan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry I didn't understand what did you mean by message. The mail contents or the object MimeMessage?

I am using templates (.emt files) to keep the mail contents and using Velocity (Velocity.evaluate(...) method)to process the template.

I have my own object which extends from MimeMessage that is the message to use as an argument in Transport.send(...) method.
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So how do you create that MimeMessage object? Because it seems that that's where it's going wrong.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!