File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Issues in sending mail using JavaMailSender" Watch "Issues in sending mail using JavaMailSender" New topic
Author

Issues in sending mail using JavaMailSender

sivachithambaram Rangaraj
Greenhorn

Joined: Feb 10, 2010
Posts: 5
Hi

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

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

------=_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
------=_Part_9_5263030.1276263086968--


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
port=25
host=local
smtp.auth=false
mail.smtp.starttls.enable=false.


Any help will be highly appreciated.



David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Without the code that creates the email I don't see how anybody could help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues in sending mail using JavaMailSender