Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Creates a new email.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WinSendMail | 7.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
none
Returns email number or error.
Send an email with values from field:
Set Variable [ $email; Value:MBS( "WinSendMail.CreateEmail" ) ]
Set Variable [ $r; Value:MBS( "WinSendMail.AddTo"; $email; Send::To Email ; Send::To Name ) ]
Set Variable [ $r; Value:MBS( "WinSendMail.AddCC"; $email; Send::CC Email ; Send::CC Name ) ]
Set Variable [ $r; Value:MBS( "WinSendMail.SetFrom"; $email; Send::From Email ; Send::From Name ) ]
Set Variable [ $r; Value:MBS( "WinSendMail.SetSubject"; $email; Send::Subject ) ]
Set Variable [ $r; Value:MBS( "WinSendMail.SetText"; $email; Send::Text) ]
Set Variable [ $r; Value:MBS( "WinSendMail.Send"; $email ) ]
If [ MBS("IsError") ]
Show Custom Dialog [ Title: "Failed to send email"; Message: $r; Default Button: “OK”, Commit: “Yes”; Commit: “No” ]
Else
Pause/Resume Script [ Duration (seconds): 2 ]
End If
Set Variable [ $r; Value:MBS( "WinSendMail.Release"; $email ) ]
This function checks for a license.
Created 28th February 2017, last changed 25th November 2019