File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Issues in sending mail using JavaMailSender Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Issues in sending mail using JavaMailSender" Watch "Issues in sending mail using JavaMailSender" New topic

Issues in sending mail using JavaMailSender

sivachithambaram Rangaraj

Joined: Feb 10, 2010
Posts: 5

I am using JavaMailSender to send a mail .Mail is received to the correct destination ,But the body of email contains unwanted header informations like

Content-Type: multipart/related; boundary="----=_Part_9_5263030.1276263086968"

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Dear Applicant1,

Please find your account details below,

User Name : Applicant1
Password : BP^9^0uN

Kindly note that this is a system generated password and do remember to change this password when you login for the first time.

Warm Regards,
Jupiter Admin

and also in the mail "to" address and "subject" of the mail is not populated.It looks like some issues related to the configuration.But i coudn't figure out the exact reason.The JavaMailSender has the following configuration

Any help will be highly appreciated.

David Newton

Joined: Sep 29, 2008
Posts: 12617

Without the code that creates the email I don't see how anybody could help.
Have you tried LearnNowOnline?
subject: Issues in sending mail using JavaMailSender