Re: WOMailDelivery question
Re: WOMailDelivery question
- Subject: Re: WOMailDelivery question
- From: Janice Cheung <email@hidden>
- Date: Tue, 22 Mar 2005 12:32:08 -0500
Hi Mark,
Thanks so much! It works now.
Best regards,
Janice
Mark Morris wrote:
Hi Janice,
I believe it's as simple as coding the email address with the
following format:
"First Last" <email@hidden>
with the quotes around the full name and the angle brackets around the
email address.
Regards,
Mark
On Mar 22, 2005, at 10:10 AM, Janice Cheung wrote:
Greetings!
I have a question about sending e-mail.
I have the email functionality in place, and it is working
properly.
However, a request has been made to change the String "from" to
include the e-mail address + person Fullname.
I do not have any difficulties with modifying the String from to
include the person's full name, but when the String
is modified, the recipient of the e-mail cannot reply to the
"from" String.
I am wondering if I can somehow add a "Reply-to" email string as
well, so that there is less confusion. Or, is there
a way that the From String can be modified so that the entire
String appears properly, but only e-mails to the
e-mail address?
Here is my code:
public void compose() {
Session s =
(Session) session();
String
from=(s.currentUser.preferredEmail());
if
((s.currentUser.preferredEmail().length()) != 0 )
from +=
((s.currentUser.firstname())+" "+(s.currentUser.lastname())); <=
here is where my From string causes problems for the email recipient
else from =
"email@hidden";
String Msg = "";
boolean sendNow =
false;
Msg = message();
WOMailDelivery
mailer = WOMailDelivery.sharedInstance();
Msg =
mailer.composePlainTextEmail(from, to, cc, subject, Msg, sendNow);
mailer.sendEmail(Msg);
}
Is there an easy solution to this? I am trying to find a way
around this, but it is eluding me..
Any advice or guidance is greatly appreciated!
Best regards,
Janice
_______________________________________________
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