WinSendMail.ClearAttachments
----------------------------

Clears all attachments from this email.

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

MBS( "WinSendMail.ClearAttachments"; WinSendMailRef ) 

**MBS**( **"WinSendMail.ClearAttachments";** /\* Clears all attachments from this email. \*/  
**$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 OK or error.

### Description

Clears all attachments from this email.  
### See also

- [SendMail.ClearAttachments](SendMailClearAttachments.md)
- [WinSendMail.ClearRecipients](WinSendMailClearRecipients.md)

This function checks for a license.

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

  
[WinSendMail.AttachmentCount](WinSendMailAttachmentCount.md) - [WinSendMail.ClearRecipients](WinSendMailClearRecipients.md)

[HTML Version](WinSendMailClearAttachments.shtml)