• 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
WOMailDelivery question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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

  • Prev by Date: JavaMonitor Null Pointer exception
  • Next by Date: RE: Design Best Practice Question
  • Previous by thread: JavaMonitor Null Pointer exception
  • Next by thread: Re: WOMailDelivery question
  • Index(es):
    • Date
    • Thread