Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WinSendMail.SetFrom

Sets the email from address.

Component Version macOS Windows Linux Server iOS SDK
WinSendMail 7.1 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WinSendMail.SetFrom"; WinSendMailRef; Email { ; Name } )   More

Parameters

Parameter Description Example Flags
WinSendMailRef The email reference number obtained using WinSendMai.CreateEmail function. $Email
Email The email address of the from field. "test@mbsplugins.de"
Name Optional the name of the from field.
If this name contains special characters, it will be automatically encoded with UTF-8.
Do not put an email address here!
"John Miller" Optional

Result

Returns OK or error.

Description

Sets the email from address.
Email addresses need to be prefixed with "SMTP:".

Examples

Sets the from address:

Set Variable [ $r; Value:MBS( "WinSendMail.SetFrom"; $email; Send::From Email ; Send::From Name ) ]

See also

Example Databases

This function checks for a license.

Created 28th February 2017, last changed 25th October 2023


WinSendMail.SendAsync - WinSendMail.SetSubject