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

From VFXPedia

Jump to: navigation, search

Contents

Mail : SetBody

Arguments

SetBody( bodyText )

  • bodyText (string, required)

The desired 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 the plain text body for a Fusion mail object.

Requirements

  • eyeonScript 5.0
  • Fusion 5.0

Examples

mail = fusion:CreateMail()
mail:AddRecipients("Example@example.com")'''
mail:SetSender("examplor@example.com")
 
mail:SetBody("Dear example,\n
               This is an Example\n
               Love,\n
               Examplor")
mail:SetSubject("This is an example.")
mail:AddAttachment("c:\\example.txt")
 
success, errormsg = mail:Send()


Tips for SetBody (edit)

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