Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem