Events.Alarm.SetEmailAddress
----------------------------

Sets the email for this alarm.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Events](component_Events.md) | [6.2](newinversion62.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "Events.Alarm.SetEmailAddress"; EKAlarm; Email ) 

**MBS**( **"Events.Alarm.SetEmailAddress";** /\* Sets the email for this alarm. \*/  
**$EKAlarm**; /\* The reference to the alarm.e.g. $Alarm \*/   
**$Email**) /\* The new email address.e.g. "alarm@test.test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| EKAlarm | The reference to the alarm. | $Alarm |
| Email | The new email address. | "alarm@test.test" |

### Result

Returns OK or error.

### Description

Sets the email for this alarm.  
An email address that is the recipient of an email alarm, which is an alarm that triggers an email message.  
When you set the emailAddress, the type is set to Email, and the soundName and url are cleared.  
### See also

- [Calendar.Alarm.GetEmailAddress](CalendarAlarmGetEmailAddress.md)
- [Calendar.Alarm.SetEmailAddress](CalendarAlarmSetEmailAddress.md)
- [Events.Alarm.GetEmailAddress](EventsAlarmGetEmailAddress.md)

This function checks for a license.

Created 10th March 2016 , last changed 13th August 2016

  
[Events.Alarm.SetAbsoluteDate](EventsAlarmSetAbsoluteDate.md) - [Events.Alarm.SetProximity](EventsAlarmSetProximity.md)

[HTML Version](EventsAlarmSetEmailAddress.shtml)