+ Start a Discussion
TechEd_ProgrammerTechEd_Programmer 

Creating e-mail messaging need direction please

All -

 

I am creating an email messaging service and I understand how to do it with text in the body, however this specific e-mail is being sent with XML format in the body. Does anyone know the best way to indicate the next line for this type of format? I understand the code for next line etc...but this one is new to me. Any assistance would help.

 

 

Puneet SardanaPuneet Sardana

Hi,

 

You can create a String with HTML body using <br/> for next line. And while sending email use function mail.sethtmlbody(str). Please let me know if this solves your problem.

TechEd_ProgrammerTechEd_Programmer

This is actually for receiving. How would this look in that instance?

Puneet SardanaPuneet Sardana

Hi,

 

Have you tried printing the body using System.debug(body); With this you can check what's coming in the body?