• 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
sending html in email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sending html in email


  • Subject: sending html in email
  • From: Anthony Arthur <email@hidden>
  • Date: Sun, 18 Mar 2007 19:27:18 -0400

Hi,

Searching the archives I am not finding a match, but just wondering how do I send html in the body of an email message so that it will render as though it were in a browser.  My code looks like:

WOComponent banner = pageWithName("EmailContentPage");
WOResponse response;


((EmailContentPage)banner).emailMessage = "This is your password: " + user.password() + ".  You will be prompted for a new password the next time you log in.";

response = banner.generateResponse();

email.setText("Content-Type: text/html; charset=\"" + "iso-8859-1" + "\"" + "\n\n" +response.contentString());

It just renders as raw html in the body of the email message..., must be something simple that I am forgetting.  Can someone offer a clue?

Thanks,

--Brian

 _______________________________________________
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: sending html in email <SOLVED>
      • From: Anthony Arthur <email@hidden>
    • Re: sending html in email
      • From: Pascal Robert <email@hidden>
  • Prev by Date: Re: Norman Richards on WebObjects
  • Next by Date: Re: sending html in email
  • Previous by thread: Re: investigating mysterious death
  • Next by thread: Re: sending html in email
  • Index(es):
    • Date
    • Thread