SendMail.AttachmentCount
------------------------

Queries number of attachments.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SendMail](component_SendMail.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "SendMail.AttachmentCount"; EmailID ) 

**MBS**( **"SendMail.AttachmentCount";** /\* Queries number of attachments. \*/  
**$EmailID**) /\* The email reference number obtained using [SendMail.CreateEmail](SendMailCreateEmail.md) function. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EmailID | The email reference number obtained using [SendMail.CreateEmail](SendMailCreateEmail.md) function. | $EmailID |

### Result

Returns number or error.

### Description

Queries number of attachments.  
### See also

- [SendMail.AddAttachmentText](SendMailAddAttachmentText.md)
- [SendMail.CreateEmail](SendMailCreateEmail.md)
- [WinSendMail.AttachmentCount](WinSendMailAttachmentCount.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr1](https://www.mbsplugins.de/archive/2016-10-04/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 1st October 2016 , last changed 1st October 2016

  
[SendMail.AddTo](SendMailAddTo.md) - [SendMail.ClearAttachments](SendMailClearAttachments.md)

[HTML Version](SendMailAttachmentCount.shtml)