Re: ERJavaMail
Re: ERJavaMail
- Subject: Re: ERJavaMail
- From: "Cheong Hee (Gmail)" <email@hidden>
- Date: Wed, 15 Feb 2012 18:29:17 +0800
Hi Gino
From what I have used before, this is what i have added in prepareMail():
htmlPart.setHeader ("Content-Transfer-Encoding", "quoted-printable");
Cheers
Cheong Hee
----- Original Message -----
From: "Gino Pacitti" <email@hidden>
To: "WebObjects-Dev Mailing List List" <email@hidden>
Sent: Wednesday, February 15, 2012 6:04 PM
Subject: Re: ERJavaMail
I am doing this...
ERMailDeliveryHTML mail = new ERMailDeliveryHTML();
mail.setComponent(pageToRender);
mail.newMail();
mail.setFromAddress(FROM_ADDRESS);
mail.setReplyToAddress(REPLY_ADDRESS);
mail.setSubject(subject);
mail.setToAddresses(toAddresses);
mail.sendMail();
Yet still it shows - Content-Transfer-Encoding: 7bit
Any ideas how this can be overridden?
G
On 15 Feb 2012, at 09:56, Philippe Rabier wrote:
Hi Gino,
I've checked what our emails contain and I can see:
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
We send only HTML mails so maybe it can explain the difference.
And the code is something like that:
ERMailDeliveryHTML message = new ERMailDeliveryHTML();
message.setComponent(page);
String mailSubject = (String)
_localizer.valueForKeyPath(mailSubjectKey);
message.setSubject(mailSubject );
message.setToAddress(email);
message.setFromAddress(mailFrom);
// send the mail assynchronously
message.sendMail();
Philippe
On 14 févr. 2012, at 20:36, Gino Pacitti wrote:
Hi All
I can send an HTML email with style and UTF-8 Characters...
But the styling does not get rendered on my mail program (It does for
other HTML emails...)
The main difference I see in the headers is this:
My email header viewed as source
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
This is from another email which I received from a promotion sent to me
with images and styled text:
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
If this is the cause is there there a way to set the Content-
Transfer-Encoding using ERJavaMail?
Or am I missing something?
Gino
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden