WinSendMail.SendAnsi
--------------------

Sends email.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WinSendMail](component_WinSendMail.md) | [7.1](newinversion71.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [WinSendMail.Send](WinSendMailSend.md) instead.

MBS( "WinSendMail.SendAnsi"; WinSendMailRef; Flags ) 

**MBS**( **"WinSendMail.SendAnsi";** /\* Sends email. \*/  
**$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. \*/ 

### 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.  
Same as [WinSendMail.Send](WinSendMailSend.md), but limited to Windows ANSI text encoding.  
Use this only if unicode MAPI interface is not supported by an older email client.  
### See also

- [WinSendMail.Send](WinSendMailSend.md)
- [WinSendMail.SendAsync](WinSendMailSendAsync.md)

This function checks for a license.

Created 28th February 2017 , last changed 29th July 2024

  
[WinSendMail.Send](WinSendMailSend.md) - [WinSendMail.SendAsync](WinSendMailSendAsync.md)

[HTML Version](WinSendMailSendAnsi.shtml)