WinSendMail.AttachmentCount
---------------------------

Queries number of attachments.

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

MBS( "WinSendMail.AttachmentCount"; WinSendMailRef ) 

**MBS**( **"WinSendMail.AttachmentCount";** /\* Queries number of attachments. \*/  
**$WinSendMailRef**) /\* The email reference number obtained using WinSendMai.CreateEmail function.e.g. $Email \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WinSendMailRef | The email reference number obtained using WinSendMai.CreateEmail function. | $Email |

### Result

Returns number or error.

### Description

Queries number of attachments.  
### See also

- [SendMail.AttachmentCount](SendMailAttachmentCount.md)
- [WinSendMail.AddAttachmentFile](WinSendMailAddAttachmentFile.md)
- [WinSendMail.AddAttachmentText](WinSendMailAddAttachmentText.md)

This function is free to use.

Created 28th February 2017 , last changed 5th March 2017

  
[WinSendMail.AddTo](WinSendMailAddTo.md) - [WinSendMail.ClearAttachments](WinSendMailClearAttachments.md)

[HTML Version](WinSendMailAttachmentCount.shtml)