> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Email Notifications

> This help topic describes how to review and configure Megaport email notifications.

export const Anchor = ({name}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Anchor -';
  if (name === undefined || name === null || name === 'undefined') {
    console.error(`${errorPrefix} \`name\` must have a value — rendering an empty string instead`);
    return <></>;
  }
  const raw = typeof name === 'string' ? name : JSON.stringify(name);
  const id = raw.replace(/\s+/g, '-').replace(/[^A-Za-z0-9_-]/g, '').replace(/-+/g, '-').replace(/^-+|-+$/g, '');
  if (!id) {
    console.error(`${errorPrefix} \`name\` "${name}" sanitizes to an empty id — rendering an empty string instead`);
    return <></>;
  }
  return <a style={{
    scrollMarginTop: 'var(--scroll-mt)'
  }} id={id}></a>;
};

export const Image = ({src, alt = '', caption, width, height, shadow}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Image -';
  if (typeof src !== 'string') {
    src = String(src);
  }
  if (!src || src === 'undefined') {
    console.error(`${errorPrefix} \`src\` is required — rendering an empty string instead`);
    return <></>;
  }
  const img = <img className={['mega-image-style', shadow ? 'shadow' : ''].join(' ')} src={src} alt={alt} width={width} height={height} style={{
    display: 'block'
  }} />;
  return caption ? <figure>
      {img}
      <figcaption style={{
    textAlign: 'center',
    width
  }}>{caption}</figcaption>
    </figure> : img;
};

export const Link = ({href, children}) => {
  const errorPrefix = '\x1b[31;1;4mERROR\x1b[0m: Link -';
  if (typeof href !== 'string') {
    href = String(href);
  }
  if (!href || href === 'undefined') {
    console.error(`${errorPrefix} the \`href\` property is required — rendering an empty string instead`);
    return <></>;
  }
  if (href.includes('{') || href.toUpperCase().includes('%7B')) {
    console.error(`${errorPrefix} could not resolve a variable in href "${href}" — rendering an empty string instead`);
    return <></>;
  }
  const isExternal = (/^https?:\/\//).test(href);
  return <a href={href} className="link" target={isExternal ? '_blank' : undefined} rel={isExternal ? 'noreferrer' : undefined}>
      {children ?? href}
      {isExternal && <span className="sr-only"> (opens in a new tab)</span>}
    </a>;
};

Registered Megaport Portal customers and users can manage email notification subscriptions in the Megaport Portal. Email notifications are categorized into these groups:

* Financial
* Company
* Ordering
* Services
* Service Status

You can choose to receive email notifications or opt out for each notification type, with some exceptions by account type.

Here are the email notification settings by account type:

| **Account Type** | **Supported By** | **Default Notification Settings**                                                       | **Configurable?** | **Notes**                                                                                                                                                                                                                                                                                                                                   |   |
| :--------------- | :--------------- | :-------------------------------------------------------------------------------------- | :---------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | - |
| Direct           | Megaport         | Enabled for all categories except Service Status.                                       |       **✓**       |                                                                                                                                                                                                                                                                                                                                             |   |
| Partner          | Partner          | Enabled for all categories except Service Status.                                       |       **✓**       | Notification settings are hidden.<br /><br /> Partner accounts cannot disable managed account notifications.                                                                                                                                                                                                                                |   |
| Partner          | Megaport         | Enabled for all categories except Service Status for both partner and managed accounts. |       **✓**       | Partner accounts can receive partner-only notifications or partner and managed account notifications.<br /><br /> Partner notifications are sent to Megaport.                                                                                                                                                                               |   |
| Managed          | Megaport         | Disabled for all categories.                                                            |       **✓**       | Managed account users are given access to Services, Ordering, and Service Status notifications for their own managed account and services.<br /><br /> Partner, Financial, and Company notifications do not appear.<br /><br /> Port and service re-terming notifications that a managed user is not subscribed to are sent to the partner. |   |
| Managed          | Partner          | Disabled for all categories. Notification settings are hidden.                          |        *X*        |                                                                                                                                                                                                                                                                                                                                             |   |

<Anchor name="email-notification" />

**To change email notification preferences**

1. Visit the <Link href="https://portal.megaport.com">Megaport Portal</Link> and log in.

2. Choose User Menu > User Settings > Notifications.

   <Image src="/images/portal-admin/access-settings.png" alt="Notification Settings" shadow={true} width={300} />

3. Click a notification group to view all of the individual email notification types in that group.\
   The list of events that trigger notifications in that group appear.

4. Select the notification group check box to subscribe to all notifications in that group, or subscribe to individual notification types.
   Any notification subscription changes are automatically saved.
   <Image src="/images/portal-admin/configure-email-notifications-ens.png" alt="Configure Email Notifications" shadow={true} width={750} />

## Default email notifications

All users, including partners and managed account users, receive the following People and Security email notifications by default. These categories are not configurable.

| **Category** | **Event**                                                      |
| ------------ | -------------------------------------------------------------- |
| People       | When an email is being validated.                              |
|              | When a user registers with a company.                          |
|              | When a user enables two-factor authentication.                 |
|              | When a user requests the secret for two-factor authentication. |
| Security     | When a person tries to log in but fails.                       |
|              | When a person registers.                                       |
|              | When a user requests a password reset.                         |

## Helpful references

* [Adding and Modifying Users](/portal-admin/user-management)
* [Managing User Roles](/portal-admin/user-management/roles)
* [Monitoring Services for Status](/monitoring/service-status)
* [Monitoring Service Status with the API](/api/monitoring)
* [Network Maintenance Notifications](/support/maintenance)
* [Setting up MCR BGP notifications](/mcr/configuring-mcr#bgp-notification)
