WinSendMail.AddCC
-----------------

Adds a copy recipient.

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

MBS( "WinSendMail.AddCC"; WinSendMailRef; Email; Name ) 

**MBS**( **"WinSendMail.AddCC";** /\* Adds a copy recipient. \*/  
**$WinSendMailRef**; /\* The email reference number obtained using WinSendMai.CreateEmail function.e.g. $Email \*/   
**$Email**; /\* The email address of the recipient.e.g. "SMTP:test@mbsplugins.de" \*/   
**$Name**) /\* The name of the recipient.e.g. "John Miller" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WinSendMailRef | The email reference number obtained using WinSendMai.CreateEmail function. | $Email |
| Email | The email address of the recipient. | "SMTP:test@mbsplugins.de" |
| Name | The name of the recipient. | "John Miller" |

### Result

Returns OK or error.

### Description

Adds a copy recipient.  
See also [WinSendMail.AddRecipient](WinSendMailAddRecipient.md).  
You can call this method several times to add several recipients.  
  
Email addresses need to be prefixed with "SMTP:", but this may no longer be needed in newer Outlook versions.  
### Examples

Add CC recipient:

 MBS ( "WinSendMail.AddCC"; $Mail ; “SMTP:test@test.test"; “Test Tester" )  
### See also

- [SendMail.AddBCC](SendMailAddBCC.md)
- [SendMail.AddCC](SendMailAddCC.md)
- [SendMail.AddRecipient](SendMailAddRecipient.md)
- [WinSendMail.AddBCC](WinSendMailAddBCC.md)
- [WinSendMail.AddRecipient](WinSendMailAddRecipient.md)
- [WinSendMail.AddTo](WinSendMailAddTo.md)
- [WinSendMail.CreateEmail](WinSendMailCreateEmail.md)

### Release notes

- **Version 12.0**
    - Fixed a problem with [WinSendMail.AddBCC](https://www.mbsplugins.eu/WinSendMailAddBCC.shtml), [WinSendMail.AddCC](https://www.mbsplugins.eu/WinSendMailAddCC.shtml), [WinSendMail.AddRecipient](https://www.mbsplugins.eu/WinSendMailAddRecipient.shtml), [WinSendMail.AddTo](https://www.mbsplugins.eu/WinSendMailAddTo.shtml) not passing email when name is empty.

### Example Databases

- [Win Only/Send Email via Email Application](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Send%20Email%20via%20Email%20Application.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 11.6pr4](https://www.mbsplugins.de/archive/2021-12-22/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 28th February 2017 , last changed 31st March 2025

  
[WinSendMail.AddBCC](WinSendMailAddBCC.md) - [WinSendMail.AddRecipient](WinSendMailAddRecipient.md)

[HTML Version](WinSendMailAddCC.shtml)