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.SendAsync
Sends email asynchronously.
Component |
Version |
macOS |
Windows |
Linux |
Server |
iOS SDK |
WinSendMail
|
9.1 |
❌ No |
✅ Yes |
❌ No |
❌ No |
❌ No |
MBS( "WinSendMail.SendAsync"; WinSendMailRef; Flags )
More
MBS(
"WinSendMail.SendAsync"; /* Sends email asynchronously. */
$WinSendMailRef; /* The email reference number obtained using WinSendMai.CreateEmail function.e.g. $Email */
$Flags) /* The flags.
Add 1 to show no dialog.
Add 2 to disable logon user interface.
Add 4 to disable parent window. */
Less
Parameters
Parameter |
Description |
Example |
WinSendMailRef |
The email reference number obtained using WinSendMai.CreateEmail function. |
$Email |
Flags |
The flags.
Add 1 to show no dialog.
Add 2 to disable logon user interface.
Add 4 to disable parent window. |
|
Result
Returns OK or error.
Description
Sends email asynchronously.
The email is sent using the locally installed mail client. But this function does not wait for the result.
Some email clients seem not to like more than one attachment.
With outlook you can keep text empty and attach a html file. Then Outlook will use the html file as content of the email and allows you to send html email.
Falls back to WinSendMail.SendAnsi if Unicode support is missing in older Windows versions.
Outlook loves to return failed, if you pass in email address for To/BCC/CC and no name.
See also
Release notes
Blog Entries
This function is free to use.
Created 28th February 2019, last changed 3th April 2021
WinSendMail.SendAnsi
-
WinSendMail.SetFrom