• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mail supporting Multi-Mime format

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic