This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Mail supporting Multi-Mime format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Mail supporting Multi-Mime format" Watch "Mail supporting Multi-Mime format" New topic
Author

Mail supporting Multi-Mime format

madhankumar kumaravelu
Greenhorn

Joined: Nov 30, 2011
Posts: 17
Hello

Iam using JavaMailAPI,FreeMarker and Struts.

We need to send an email which should support Multi-Mime part.

But iam able to send only the html part formatted properly (i.e. for the person
who has only text rendering capability this functionality is broken.

Please find the below sample txt file template:

From: "Sample" <feedback@sample.com>
To: "{firstName lastName}" <{SampleEmail}>
Subject: Feedback regarding {sample}
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Sample_a495b9d27a9d44e"

------=_Sample_a495b9d27a9d44e
Content-type: text/plain; charset=utf8
Content-Transfer-Encoding: quoted-printable

Hello How are you!

------=_DocsVox_a495b9d27a9d44e
Content-type: text/html; charset=utf8
Content-Transfer-Encoding: quoted-printable

<html></html>

------=_Sample_a495b9d27a9d44e--

Please reply me with a sample code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mail supporting Multi-Mime format
 
Similar Threads
JavaMail set content to utf-8
JRun sendmail help to send multi-part messages
Trying to send HTML email but coming through as text email
Sending a HTML mail
JavaMail - Problem while sending file attachment