Eyeon:Script/Reference/Applications/Fusion/Classes/MailMessage/Send
From VFXPedia
< Eyeon:Script | Reference | Applications | Fusion | Classes | MailMessage
Contents |
Mail : Send
Arguments
success, errrormsg = Send()
Returns
- success (boolean)
Indicates that the message was accepted by the recipient server.
- errormsg (string)
If Send() fails, system error details will be return in errormsg
Remarks
Use this function to send a mail object to the recipients defined by the AddRecipients() function.
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() if (success) then print("Mail sent.") else print("Error: Could not send mail.") print(errormsg) end
Tips for Send (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/MailMessage/Send