• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOMailDelivery question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOMailDelivery question


  • Subject: Re: WOMailDelivery question
  • From: Mark Morris <email@hidden>
  • Date: Tue, 22 Mar 2005 11:16:44 -0600

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

  • Follow-Ups:
    • Re: WOMailDelivery question
      • From: Janice Cheung <email@hidden>
References: 
 >EOModelGroup.defaultGroup().models() is empty !!! Why ? (From: Dumitru Husleag <email@hidden>)
 >JavaMonitor Null Pointer exception (From: "Robert Snyder" <email@hidden>)
 >WOMailDelivery question (From: Janice Cheung <email@hidden>)

  • Prev by Date: Re: Linking Array elements to WOComponents
  • Next by Date: Re: Linking Array elements to WOComponents
  • Previous by thread: WOMailDelivery question
  • Next by thread: Re: WOMailDelivery question
  • Index(es):
    • Date
    • Thread