Lasso Soft Inc. > Home

[ email_compose->addhtmlpart ]

Method

[email_compose->addHtmlPart] adds a new HTML part to a message being composed. The tag requires either the -data parameter which takes the HTML text of the part to be added or the -path parameter which specifies the name of a file that will be included as the HTML part.

  • Syntax
email_compose->addTextPart(-data='text')

email_compose->addTextPart(-path='include.txt')
Examples
  • Beginner

Adding an HTML part to an email

The code below attaches an HTML data section to an email that can be viewed by those email clients who have that capability.

Code

var(my_msg) = email_compose(-to='to@example.org', -from='from@example.com', 
    -subject='Multi', -body='# Lost Rhino!')
$my_msg->addHtmlPart(-data='<h1>Lost Rhino!</h1>')

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft