< Previous | Contents | Next >

MailMessage

class MailMessage

Parent class: Object

Represents an email message.

Please note that if no explicit server settings are set with the SetServer, SetLogin and SetPassword


image


methods, the default Preferences (Globals -> Network -> Server Settings ...) are used. If these are not set the recipient server is tried to be reached.


image

mail.AddRecipients(vfx@studio.com, myself@studio.com”)

mail.SetSubject(“Render Completed”) mail.SetBody(“The job completed.”)

print(mail.SendTable())

status = mail.SendTable().values()

if len(status) > 1:

print(status[1]) # error message

print (status[0]) # success boolean

mail = fusion.CreateMail()

> Python usage:

image

mail:AddRecipients(vfx@studio.com, myself@studio.com”)

mail:SetSubject(“Render Completed”) mail:SetBody(“The job completed.”)

print(ok)

print(errmsg)

ok,errmsg = mail:Send()

mail = fusion:CreateMail()

> Lua usage:


 

Methods