+ Start a Discussion
teknicsandteknicsand 

How to display a list item in the html body of an email

Is there a way to display items in a htmlBody of an email. I know it accepts only strings, but if there is a workaround to getting list items to display in the email, it would great.

 

Any suggestions?

 

thanks

 

cheers

sand

jgrenfelljgrenfell

Sand,

 

I've done this by creating the string as I loop through a list.  Something like this...

 

String html_string = '<table>' for (Item i : SomeList){ html_string = html_string + '<tr><td>' +i.Name +</td></tr>; } html_string = html_string + '</table>'

 

Jessie