• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error: Message is not RFC compliant

 
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: 20820
68
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: 20820
68
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!