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

From VFXPedia

Jump to: navigation, search

Contents

Mail : AddRecipients

Arguments

AddRecipients( toAddress, ...)
AddRecipients( toAddressTable)

  • toAddress (string, required)

The address(es) of the person (people) to be emailed, separated by commas.

  • toAddressTable (table, required)

A table of strings each containing one email address, or;
a table of subtables, each subtable containing two strings; a friendly recipient name and an email address.

Returns

This function does not return a value.

Remarks

Use this function to add a recipient to the mail object created by Fusion.

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")
 
ok,errmsg = mail:Send()


Tips for AddRecipients (edit)

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