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

From VFXPedia

Jump to: navigation, search

Contents

Mail : AddAttachment

Arguments

AddAttachment( path )

  • path (string, required)

A valid full path to the file to be attached to 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 attach a file to a mail object. Multiple files may be attached.

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 AddAttachment (edit)

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