DragDrop.GetEmailCount
----------------------

Returns number of emails received from Apple Mail app.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DragDrop](component_DragDrop.md) | [2.7](newinversion27.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "DragDrop.GetEmailCount"; droparea ) 

**MBS**( **"DragDrop.GetEmailCount";** /\* Returns number of emails received from Apple Mail app. \*/  
**$droparea**) /\* The reference ID for this drop area.e.g. $dropHandle \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| droparea | The reference ID for this drop area. | $dropHandle |

### Result

The number of emails or error.

### Description

Returns number of emails received from Apple Mail app.  
If multiple emails arrive, the order of the email metadata (subject, mailbox, account) is not in the same order as the files. So you may prefer to use [EmailParser](component_EmailParser.md) functions to read the subject from each file.  
### See also

- [DragDrop.GetEmailAccount](DragDropGetEmailAccount.md)
- [DragDrop.GetEmailID](DragDropGetEmailID.md)
- [DragDrop.GetEmailMailbox](DragDropGetEmailMailbox.md)
- [DragDrop.GetEmailSubject](DragDropGetEmailSubject.md)
- [DragDrop.GetPathCount](DragDropGetPathCount.md)
- [DragDrop.RegisterDropTypes](DragDropRegisterDropTypes.md)

This function checks for a license.

Created 18th August 2014 , last changed 10th June 2024

  
[DragDrop.GetEmailAccount](DragDropGetEmailAccount.md) - [DragDrop.GetEmailID](DragDropGetEmailID.md)

[HTML Version](DragDropGetEmailCount.shtml)