WOMailDelivery question
WOMailDelivery question
- Subject: WOMailDelivery question
- From: Janice Cheung <email@hidden>
- Date: Tue, 22 Mar 2005 11:10:50 -0500
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