Re: ERJavaMail
Re: ERJavaMail
- Subject: Re: ERJavaMail
- From: "Cheong Hee (Gmail)" <email@hidden>
- Date: Thu, 16 Feb 2012 15:08:54 +0800
Hi Gino
You may look at the ERMailDeliveryHTML or get a subclass from
ERMailDeliveryComponentBased. In prepareMail(), look for this code and
appended the last line after the setContent:
htmlPart = new MimeBodyPart ();
htmlPart.setContent (this.htmlContent (), "text/html; charset=\"" + charset
() + "\"");
htmlPart.setHeader ("Content-Transfer-Encoding", "quoted-printable");
Not sure if this will solve as it has been quite a while the last time I
jumped into email signing coding.
Cheers
Cheong Hee
cc. loop back to the list for record..
----- Original Message -----
From: "Gino Pacitti" <email@hidden>
To: "Cheong Hee (Gmail)" <email@hidden>
Sent: Thursday, February 16, 2012 3:23 AM
Subject: Re: ERJavaMail
Hi Cheong
Do you have an example of this?
GIno
On 15 Feb 2012, at 10:29, Cheong Hee (Gmail) wrote:
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" <webobjects- 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
_______________________________________________
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