Re: email in Unicode
Re: email in Unicode
- Subject: Re: email in Unicode
- From: Ralph Scheuer <email@hidden>
- Date: Wed, 3 Mar 2004 17:01:10 +0100
Hi,
hello,
i want to send an email as Unicode.
now i use this code to send a normal string
WOMailDelivery mailAgent = WOMailDelivery.sharedInstance();
mailAgent.composePlainTextEmail
( from, toList, null, subject, messageBody, true );
Per definition, this method will always give you an ASCII String.
Moreover, the sendEmail method does not give you control over the email
headers (you need to declare those correctly in order to get your
Unicode String interpreted correctly.
You might want to try JavaMail (check out Project Wonder's
implementation (ERJavaMail) to get an idea how that could look like) or
look at WOCode.com for starters - you will find some examples there.
This will give you full control of headers and you will be able to
control the encoding, send attachments, correct cc addresses and bcc.
Also, if you continue using WOMailDelivery, prepare to have incorrect
mail addresses (without "< >" - some mail servers won't accept that.
how can i make the Subject and MessageBody be sent as a Unicode Email?
see above.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.