473,509 Members | 4,901 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JAVAMAIL - quoted-printable over base64

SPG
Hi,

I have an application that is sending out emails to my clients.
Some mails are text based and some are html based depending on their
preferences.

Text emails are fine.
I am setting up the HTML email as follows:

<SNIP>
message.setRecipients(RecipientType.TO,createRecip ientAddress(address));
message.setFrom(new InternetAddress(from, friendly));
message.setHeader("Subject",subject);
message.setSentDate(new Date());

message.setDataHandler(new DataHandler(new
ByteArrayDataSource(text,"text/html;charset=iso-8859-1")));
message.setHeader("Content-Transfer-Encoding", "base64");
</SNIP>

Now, some of my clients are receiving the mail fine and can read the HTML
text, and the source appears to be being encoded in base64 correctly. Some
are not able to read this and just see the the encoded data.

If I do not set the encoding to base64 and leace as default, then again,
most people can read the mail fine, but some are reporting pure html markup!
Also, without the base64 encoding header, they embedded stylesheet in the
html is being corrupted (IE: The "." are being stripped from class defs!)

Does anyone have any idea what could be the problem in either scenario, or
what is the best way to do this?

Steve

Jul 17 '05 #1
0 3725

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3951
by: Jonatan Fernstad | last post by:
I am using the JavaMail API to send email. It seems the Message.setSentDate(new Date()) sets wrong time zone. I am at GMT+1, and this is also what the new Date() is showing. But when the...
0
2113
by: pcouas | last post by:
Hi, Anyone know how reading Outlook or Outlook express contact File from Javamail ? It seems theses files are named .dbx and .vba Thanks Philippe
1
5617
by: Daniel Albisser | last post by:
Hi @ll, I was wondering why I lose the connection to the mail store while retrieving information from it without calling the method store.close()! At the end I found out that the method...
0
5910
by: John P | last post by:
Hello, I'm building email messages and attachments via the JavaMail API, which are then sent via sendmail. The attachments are mime attachments of type "application/octet-stream". They are...
1
4676
by: Jeff | last post by:
I'm finding that as I loop through a large pop store and reading each message into an input stream that the JVM is running out of memory for the case where the pop store is large (several thousand...
1
2179
by: Joshua | last post by:
Ive playedw ith the standard pop3 and imap and nntp and smtp modules but am unconvinced -- I would like to find a more sophisticated email handling API like JavaMail (from which I hope to convert)....
0
1566
by: sandeepk84 | last post by:
Hi all... I am facing a problem in getting attachments from Yahoo Classic using JavaMail. My program reads the attachments from gmail and Yahoo Beta. But attachments of type pdf or txt from...
5
2388
by: rengaraj | last post by:
Hello , I try a simple javamail program to send a mail.When i execute that javamail program, i got the error as follows import java.util.*; import javax.mail.*; import...
0
1238
by: libia | last post by:
Hello, I want to send a mail using java program .so i used javamail 1.4 and jaf 1.1.It was compiled successfully.If i run the program it gives the error that "unable to connect" to port 25.If...
1
1390
by: zaheer312 | last post by:
How i can install javamail-1.4.1 in my computer? as i am already using java netbean 1.6
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3207
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
443
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.