Eyeon:Script/Reference/Applications/Fusion/Classes/MailMessage/SetHTMLBody

From VFXPedia

< Eyeon:Script | Reference | Applications | Fusion | Classes | MailMessage
Revision as of 02:03, 21 March 2007 by Daniel (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Mail : SetHTMLBody

Arguments

SetHTMLBody( bodyText )

  • bodyText (string, required)

The desired HTML text of the body of the mail object.

Returns

This function does not return a value. Returns an error if not run on a mail object.

Remarks

Use this function to set HTML text as the body for a Fusion mail object. It is recommended that the same message also be set in plain text using SetBody(), as some mail clients do not support HTML bodies.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

mail = fusion:CreateMail()
 
mail:AddRecipients("Example@example.com")'''
mail:SetSender("examplor@example.com")
mail:SetSubject("This is an HTML example.")
 
mail:SetHTMLBody("<html> <head> <title>Example</title> </head> <body>"
               "Dear example,\n <b>This</b> is an Example\n Love,\n <i>Examplor</i>"
               "</body></html>")
mail:SetBody("Sorry, your mail client does not support HTML.")
 
success, errormsg = mail:Send()


Tips for SetHTMLBody (edit)

EyeonTips:Script/Reference/Applications/Fusion/Classes/MailMessage/SetHTMLBody