Eyeon:Script/Reference/Applications/Fusion/Classes/MailMessage/SetSender
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | MailMessage
Contents |
Mail : SetSender
Arguments
SetSender( fromAddress )
SetSender( fromTable )
- fromAddress (string, required)
The address that the email should show in its From: field.
- fromTable (table, required)
A table containing two strings: the sender's name, and email address.
Returns
This function does not return a value. Returns an error if not run on a mail object.
Remarks
Use this function to set a sender for the mail object created by Fusion. MailMessages are created by default with a Sender address already specified, if eyeonScript can determine one from the system. SetSender() can be used to override this, or to supply one if necessary.
Requirements
- eyeonScript 5.0
- Fusion 5.0
Examples
mail = fusion:CreateMail() mail:AddRecipients("Example@example.com") if mail:GetTable().From == nil then mail:SetSender("examplor@example.com") end 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 SetSender (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/MailMessage/SetSender