# Email sending settings and rules

This page covers every setting, rule, limit, permission, and Content Studio task for an *Email Account*. If you're new to *Email Account*s, start with [Sending email](/getting-started/core-concepts/deployment-and-integration/email.md), which explains what an *Email Account* is and the flow by which mail gets sent. The steps for getting the values to register from each sending service are on the setup page for each Provider ([Fields that differ by Provider](#provider-fields)). What actually sends mail is a *Script*'s `EmailSend`. This page covers only the rules that apply when `EmailSend` uses an *Email Account*. The fields and notation you write in `EmailSend` are in the [API reference](/api/reference/script/statements.md#email-send).

The examples use the same online clothing store as Getting Started. The *Space* "Online Store" of the *Organization* "Cozy Closet" has the *Email Account* "Order Notifications". This *Email Account* signs in with the Gmail account `dailycloset.orders@gmail.com` to send mail, and it appears in customers' inboxes under the name `Clothing store support`. When a customer places an order, a *Script* picks this *Email Account* and sends an order confirmation email.

## Settings {#settings}

The "Create Email Account" screen, where you register an *Email Account*, is divided into three parts: **Basic information**, **Connection settings**, and **Sender information**. The **List** and **Create** buttons are at the top right of the screen.

- In **Basic information**, you set the name that identifies this *Email Account* in Content Studio.
- In **Connection settings**, you set the sending server that sends the mail out (an SMTP server, a server that sends mail in the standard way) and the details for signing in to it. The values in this part can't be changed after registering ([Connection settings can't be changed; only the name and sender information can be edited](#what-you-can-change)).
- In **Sender information**, you set the sender that recipients see. Below it, in "How the sender appears to recipients", you can preview how **From** will look in the recipient's inbox.

![The Create Email Account screen. At the top right are the Email Account guide link and the List and Create buttons. Under Basic information, "Order Notifications" is entered in the Name field, which has a required mark (19 / 64). Under Provider in Connection settings is a note to turn on POP3/SMTP in Naver Mail settings and enable two-step verification on the account, and Naver is selected in the dropdown below it. SMTP server shows smtp.naver.com and Port shows 587. In the Naver ID field, which has a required mark, "dailycloset" is entered, with the note that it's your Naver ID without @naver.com. Next to the App password field, which has a required mark, is a How to create one link, and a hidden value is entered, with the note that it's not your Naver login password but the 12-character application password, which requires two-step verification. Under Sender information is a note that Naver sends only from the authenticated account's address and replaces any other address with it, and the Sender name "Clothing store support" and the From address "dailycloset@naver.com", which has a required mark, are entered. At the bottom, How the sender appears to recipients shows From "Clothing store support <dailycloset@naver.com>"](/_img/en-US/manual/deployment-and-integration/images/naver-06-weegloo-form.webp)

| Setting | Description | Default | Constraints |
|---|---|---|---|
| **Name** | The name that identifies this *Email Account* in Content Studio. It's in **Basic information**. It isn't used in the mail | None. Required | 1 to 64 characters. You can edit it after registering |
| **Provider** | The sending service that sends the mail out. Choose one of the preset services, Gmail, Naver, Resend, or Brevo, or choose **Custom SMTP** to use a server that isn't on the list. It's in **Connection settings** | **Gmail** is selected when you first open the screen | Can't be changed after registering. **Custom SMTP** isn't available on some plans ([Which sending servers you can use](#which-servers-you-can-use)) |
| **SMTP server** | The sending server's address | When you choose a preset service, it's filled in with that service's address and can't be edited | With **Custom SMTP**, you enter it yourself. Up to 253 characters, and it must be an address reachable over the internet. Can't be changed after registering |
| **Port** | The number used to connect to the sending server | `587` | For a preset service, you choose from the ports that service accepts ([Fields that differ by Provider](#provider-fields)). With **Custom SMTP**, you set it yourself, from 1 to 65535. Can't be changed after registering |
| **Security** | How what's exchanged with the sending server is encrypted | For a preset service, it's set by the port: STARTTLS for `587` and TLS for `465` | You don't choose it separately for a preset service. With **Custom SMTP**, you must choose either **STARTTLS** or **TLS**. Can't be changed after registering |
| Username | The username for signing in to the sending server. The field's name differs by Provider. With **Custom SMTP**, it's **Username** | None. Required. Fixed to `resend` for Resend | Up to 254 characters. It may be an email address, or a value the sending service gives you. Can't be changed after registering |
| Password | The password for signing in to the sending server. The field's name differs by Provider. With **Custom SMTP**, it's **Password** | None. Required | Up to 512 characters. After registering, you can neither view it again nor change it ([The password can't be viewed again](#password-is-write-only)) |
| **Sender name** | The name shown as the sender in the recipient's inbox. It's in **Sender information** | Empty. If you leave it empty, only the From address appears | Up to 64 characters. You can edit it after registering |
| **From address** | The sending address recipients see. It's in **Sender information** | None. Required | Must be in email address format, up to 254 characters. The addresses you can use differ by sending service ([Rules for the From address](#sender-address-rules)). You can edit it after registering |

### Fields that differ by Provider {#provider-fields}

When you choose a preset service in **Provider**, **SMTP server** is filled in, and the username and password fields are renamed to match that service.

| Provider | **SMTP server** | **Port** | Username field | Password field | How to get the values |
|---|---|---|---|---|---|
| Gmail | `smtp.gmail.com` | `587`, `465` | **Gmail address** | **App password**. Not your Google account password but a 16-character app password. Any spaces you paste are removed automatically | [Preparing Gmail for sending](/manual/deployment-and-integration/email/gmail.md) |
| Naver | `smtp.naver.com` | `587` | **Naver ID**. Your ID without `@naver.com` | **App password**. Not your Naver login password but a 12-character application password | [Preparing Naver Mail for sending](/manual/deployment-and-integration/email/naver.md) |
| Resend | `smtp.resend.com` | `587`, `465` | **Username**. Fixed to `resend` | **API key** | [Preparing Resend for sending](/manual/deployment-and-integration/email/resend.md) |
| Brevo | `smtp-relay.brevo.com` | `587`, `465` | **Username**. The login address shown in Brevo's SMTP settings | **SMTP key** | [Preparing Brevo for sending](/manual/deployment-and-integration/email/brevo.md) |

When you choose **Custom SMTP**, **SMTP server**, **Port**, **Security**, **Username**, and **Password** all appear as required fields. You enter **SMTP server** and **Port** yourself, choose **STARTTLS** or **TLS** in **Security**, and enter the values that server requires in **Username** and **Password**.

![Connection settings on the Create Email Account screen. Opening the Provider dropdown shows Gmail, Naver, Resend, Brevo, and Custom SMTP in that order, and Gmail, which was selected from the start, has a check mark](/_img/en-US/manual/deployment-and-integration/images/email-04-provider-dropdown.webp)

## Rules {#rules}

### A real test email is sent when you register {#test-message-on-create}

When you click the **Create** button, the following checks run in order before the *Email Account* is saved. If any one of them fails, nothing is registered.

1. For **Custom SMTP**, it checks that **SMTP server** is an address reachable over the internet ([Which sending servers you can use](#which-servers-you-can-use)).
2. It checks that the sending server is allowed on the plan of the *Organization* this *Space* belongs to.
3. It checks that the *Email Account*s registered in this *Space* haven't reached the limit ([Limits](#limits)).
4. It actually signs in to the sending server with the connection settings you entered and sends a test email.

The test email is sent as follows.

- It goes to the **From address**. If the username is in email address format and differs from the **From address**, a separate email goes to that address too. When the **Gmail address** and **From address** are the same, as with "Order Notifications", only one email is sent.
- When there are two destinations, the account is registered as long as the email goes out to at least one of them. If it can't go out to either, the account isn't registered.
- The test email is written in English, and its subject includes the *Space* name, as in `[Weegloo] Your email account is now connected to Online Store Space`. The body lists the connected *Space* and *Organization*, the username, the **SMTP server**, and the **From address**.
- The body also says that if you didn't register the account yourself, you should change your password at the sending service. This is so that if someone registers a mail account without its owner knowing, the owner can notice and cut the connection ([The password can't be viewed again](#password-is-write-only)).

If the test email can't be sent, registration is rejected, and you're also shown the rejection reason the sending server returned. From this reason, you can tell whether the password was wrong, the port was wrong, or the server couldn't be reached. <!-- TODO: 화면 흐름 확인: 거절되었을 때 표시되는 안내와 사유를 보는 방법(2026-11 콘솔 소스: "메일 서버가 이 설정을 거절해 저장에 실패했습니다" 알림과 자세히 보기) -->

- Once the values you entered pass the earlier checks, every click of the **Create** button tries to send a test email. If you enter wrong values and save several times, a real send is attempted that many times.
- The result is decided only after the sending server responds, so registering can take a while. Even if your values are correct, the account isn't registered if the sending server doesn't respond at that moment. <!-- TODO: 화면 흐름 확인: 응답을 기다리는 동안 표시되는 안내(2026-11 콘솔 소스: "메일 서버에 이 설정을 확인하고 있습니다…") -->
- The test email sent at registration doesn't count toward external call transfer volume ([Sent mail and external call transfer volume](#external-call-usage)).

### Connection settings can't be changed; only the name and sender information can be edited {#what-you-can-change}

After registering, you can edit some settings but not others.

| Settings you can edit | Settings you can't edit |
|---|---|
| **Name**, **Sender name**, **From address** | **Provider**, **SMTP server**, **Port**, security, username, password |

- To move to a different sending server or change the password, register a new *Email Account* and delete the old one instead of editing it. The steps are in [Change the sending server or password](#replace-an-email-account).
- Editing the name or sender information doesn't send a test email. You find out whether the sending service accepts an edited **From address** the next time mail is sent ([Rules for the From address](#sender-address-rules)).
- Your edits apply to mail sent after you save. However, for up to 1 minute after saving, mail may still go out with the sender information from before the edit.
- If someone else saves the same *Email Account* first while you're editing it, your save is refused. <!-- TODO: 화면 흐름 확인: 이때 표시되는 안내와 다시 저장하는 방법 -->

### The password can't be viewed again {#password-is-write-only}

The value you enter in the password field is never shown anywhere again after registering. It's not on Content Studio's list or detail screens, and it isn't included when you read the *Email Account* from a program or a connected AI tool either.

- If you forget the password, there's no way to get it back. Get a new password from the sending service and register a new *Email Account*.
- If you change the password at the sending service, or delete the app password or key you used to register, that *Email Account* can no longer sign in to the sending server. From then on, all mail sent with this *Email Account* fails. Register an *Email Account* again with the new value and swap it in ([Change the sending server or password](#replace-an-email-account)).

### Which sending servers you can use {#which-servers-you-can-use}

- The preset services, Gmail, Naver, Resend, and Brevo, are available on every plan.
- **Custom SMTP** isn't available on some plans. Which sending servers each plan allows is in the "Email Account" row of [Pricing](/pricing/pricing.md#plan-comparison). If you try to register a server that isn't on the list on a plan that doesn't allow it, registration is rejected, and the notice "Custom SMTP isn't available on your current plan"<!-- ko: 현재 플랜에서는 커스텀 SMTP를 사용할 수 없습니다 / 영어 화면 표기 미확인 --> appears with the **Upgrade Plan**<!-- ko: 플랜 업그레이드 / 영어 화면 표기 미확인 --> button.
- The **SMTP server** for **Custom SMTP** must be an address reachable over the internet. Private network addresses used only inside an office or home (for example, addresses starting with `10.` or `192.168.`) and addresses that point to the computer itself (`localhost`, `127.0.0.1`) can't be registered. Neither can an address whose domain can't be found.
- With a preset service, you can register only the combinations of server address and port in the table under [Fields that differ by Provider](#provider-fields).

### Rules for the From address {#sender-address-rules}

The **From address** is the sending address recipients see, and it's also where mail comes back when it bounces because the recipient doesn't exist. If you fill in **Sender name**, the recipient's inbox shows the name and address together, as in `Clothing store support <dailycloset.orders@gmail.com>`. If you leave it empty, only the address appears.

Which addresses you can use as the **From address** is decided by the sending service. The guidance below for each service also appears under the **From address** field in Content Studio.

| Provider | **From address** you can use |
|---|---|
| Gmail | The address of the Gmail account you signed in with. If you enter an address Gmail hasn't verified, the mail actually goes out from the signed-in account's address instead |
| Naver | The address of the Naver account you signed in with. Even if you enter a different address, the mail goes out from that account's address |
| Resend | An address at a domain you've verified in Resend. Any other address is rejected |
| Brevo | A sender address you've added and verified in Brevo, or an address at a domain you've authenticated in Brevo |

- Because the test email is sent to the **From address** when you register, a service that rejects addresses you can't use, such as Resend, rejects the registration itself. For how to verify a domain, see [Preparing Resend for sending](/manual/deployment-and-integration/email/resend.md).
- To have replies go to an address different from the sending address, set it in the *Script*'s `EmailSend` ([API reference](/api/reference/script/statements.md#email-send)).

### How a Script sends mail with this Email Account {#how-scripts-send}

An *Email Account* only holds the sender you registered. It doesn't send mail by itself. When a *Script*'s `EmailSend` picks an *Email Account*, it signs in to the sending server with that *Email Account*'s connection settings and sends the mail.

- Each `EmailSend` picks one *Email Account* by its ID (a unique name each item gets). How to find the ID is in [Find the ID to write in your Script](#find-the-id).
- You can pick only an *Email Account* in the same *Space* as that *Script*. If you write the ID of one in another *Space*, it's treated as an *Email Account* that doesn't exist, and sending fails.
- The sending address and name are the picked *Email Account*'s **From address** and **Sender name**, used as they are. You can't change them in `EmailSend`.
- Each `EmailSend` sends one email. You set one recipient, and you can add CC and BCC recipients. All three combined can be up to 50 people. To send several emails, such as one per order, run `EmailSend` once for each item inside the *Script*.
- Several *Script*s can pick the same *Email Account*.
- Saving a *Script* doesn't check whether the picked *Email Account* exists. A *Script* with an ID that doesn't exist still saves, and it fails when it sends mail.

How to write the recipient, subject, and body is in the [API reference](/api/reference/script/statements.md#email-send).

### If sending fails {#when-sending-fails}

Once the sending server accepts the mail, the send counts as successful. Whether the mail then actually arrives in the recipient's inbox isn't checked.

A failed send isn't retried. If the *Script* has no step that handles failures, the *Script*'s run ends right there as a failure. When handing the mail to the sending server fails, the failure message starts with one of the two below, followed by the text the sending server returned.

| Start of the failure message | Description |
|---|---|
| `EmailSend was refused by the provider:` | The connection to the sending server worked and the mail was handed over, but the sending server refused it. This often happens when the recipient address or **From address** doesn't meet the sending service's rules |
| `EmailSend could not reach the provider` | The send failed before the mail was handed over: the sending server couldn't be reached, or the sign-in was refused |

Mail also isn't sent, and the send fails, in these cases.

- The recipient address is in the wrong format, or a value such as the subject contains a line break. In this case, the mail can't be built, so the send fails before the mail reaches the sending server, and the failure message starts with `EmailSend could not build the message`.
- The picked *Email Account* doesn't exist: it was deleted, the ID belongs to another *Space*, or the ID was written wrong. For sends right after a deletion, see [Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items).
- The *Organization* this *Space* belongs to has used up this month's external call transfer volume ([Sent mail and external call transfer volume](#external-call-usage)).

You check failed runs in the *Script*'s execution logs. Other failure cases that depend on how you specify recipients are in the [API reference](/api/reference/script/statements.md#email-send). For how to view execution logs, see [View execution logs](/manual/deployment-and-integration/script.md#view-execution-logs).

### Sent mail and external call transfer volume {#external-call-usage}

Mail a *Script* sends counts toward your plan's external call transfer volume ([Plan comparison](/pricing/pricing.md#plan-comparison)).

- Each email is counted by the size of the whole message, not only the subject and body.
- Even with several recipients, one email is counted only once.
- It's counted once the mail's content reaches the sending server. It's counted even if the sending server receives the content, then refuses it, and the send fails.
- A send that fails before the content is handed over isn't counted. This includes failing to connect or sign in to the sending server, and the sending server refusing the sender or recipient before receiving the content.
- When this month's transfer is used up, sending mail stops. When you can send again is covered in [When you exceed transfer volume or storage space](/pricing/pricing.md#over-usage).

### When you delete an Email Account {#when-deleting}

When you can delete an *Email Account*, and what happens after you do, are summarized in [Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items). If a *Script* uses this *Email Account*, switch that *Script*'s `EmailSend` to a different *Email Account* before deleting it. Deleting a *Space* also deletes the *Email Account*s in it ([What blocks deleting a Space and what goes with it](/manual/common/deletion.md#space)).

## Limits {#limits}

| Item | Limit |
|---|---|
| *Email Account*s registered in one *Space* | 100, regardless of plan |
| Length of **Name** | 1 to 64 characters |
| Length of **Sender name** | 64 characters |
| Length of **From address** | 254 characters |
| Length of the username | 254 characters |
| Length of the password | 512 characters |
| Length of **SMTP server** | 253 characters |
| **Port** | 1 to 65535 |
| Recipients per email | 50, counting the recipient, CC, and BCC together |
| `EmailSend` steps in one *Script* | Counted together with the steps that call external services. The value varies by plan (the limits in [Script settings and rules](/manual/deployment-and-integration/script.md#limits)) |
| External call transfer volume | Varies by plan. Check the "External calls" row in the plan comparison table |
| Sending servers you can use | Varies by plan. Check the "Email Account" row in the plan comparison table |

External call transfer volume is totaled per *Organization*, and all the *Space*s in that *Organization* share it. You check how much you've used so far in [Keeping an eye on usage and limits](/operations/workspace/watching-usage.md).

## Required permissions {#permissions}

| What you want to do | Required permission |
|---|---|
| View the *Email Account* list and settings, register, edit, delete | **Manage Email Accounts** in your role (*SpaceRole*) in that *Space* |
| Save a *Script* that picks an *Email Account* | Permission to save that *Script*. **Manage Email Accounts** isn't needed |
| Run a *Script* that sends mail | Permission to run that *Script*. **Manage Email Accounts** isn't needed |

- You turn on **Manage Email Accounts** on the **Settings** tab of the role screen. You need this item even to view the list ([Settings permissions on the Settings tab](/manual/access-and-permissions/role-and-permissions.md#permission-tab)).
- **Manage Email Accounts** works only when a member works with their own account. You can't work with *Email Account*s using a *Space Access Token* ([Settings permissions work only for people](/manual/access-and-permissions/role-and-permissions.md#settings-are-for-people)).
- Anyone who can save a *Script* can create a *Script* that sends mail through any *Email Account* in this *Space*, as long as they know its ID, even without **Manage Email Accounts**. Because that mail goes out under your store's name, give the permission to create and edit *Script*s only to members who truly need it. For *Script* permissions, see [Script settings and rules](/manual/deployment-and-integration/script.md#permissions).

## Tasks in Content Studio {#tasks}

To open the *Email Account* screen, click **Email** under **Management** in the left menu. Where the menu is located is shown in [Where the other settings in a Space are](/manual/access-and-permissions/space.md#settings-map).

### Register an Email Account {#register-an-email-account}

These steps register the *Email Account* "Order Notifications", which sends order notification emails, in the "Online Store" *Space* using Gmail. The Gmail account to sign in with is `dailycloset.orders@gmail.com`, and customers will see the sender as `Clothing store support`. The fields that differ when you register with another Provider are in [Fields that differ by Provider](#provider-fields).

Before you start, get an app password for this Gmail account. An app password is a 16-character value Google issues, separate from your Google account password. For how to get one, see [Preparing Gmail for sending](/manual/deployment-and-integration/email/gmail.md).

:::note{variant="warning" title="Creating sends a test email, and you can't edit the connection settings"}
When you click the **Create** button, a real test email is sent with the connection settings you entered, and the account is registered only if the email goes out ([A real test email is sent when you register](#test-message-on-create)). You can't change the sending server or the sign-in details after registering, so to change them, you have to register a new *Email Account* ([Connection settings can't be changed; only the name and sender information can be edited](#what-you-can-change)).
:::

![The empty Email list, with a description about registering accounts that Scripts use to send mail. Total 0 appears above the Name, Provider, Sender, SMTP endpoint, SMTP username, and Updated at columns. The list says No Email Accounts found, and the Create button is at the top right](/_img/en-US/manual/deployment-and-integration/images/email-01-list-empty.webp)

1. In the left menu, open **Email** under **Management**.
2. Click the **Create** button at the top right. The "Create Email Account" screen opens.
3. Enter `Order Notifications` in the **Name** field under **Basic information**.
4. Under **Connection settings**, select **Gmail** in **Provider**. **SMTP server** is filled in with `smtp.gmail.com`.
5. Leave **Port** at its default, `587`.
6. Enter `dailycloset.orders@gmail.com` in the **Gmail address** field.
7. Enter the 16-character app password you got earlier in the **App password** field.
8. Enter `Clothing store support` in the **Sender name** field under **Sender information**.
9. Enter `dailycloset.orders@gmail.com` in the **From address** field. Below it, "How the sender appears to recipients" shows From as `Clothing store support <dailycloset.orders@gmail.com>`.
10. Click the **Create** button at the top right.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The Create Email Account screen. At the top right are the Email Account guide link and the List and Create buttons. Under Basic information, Order Notifications is entered in the Name field. Under Connection settings, Gmail is selected in Provider, so SMTP server shows smtp.gmail.com in gray, and Port has 587 selected out of 587 and 465. dailycloset.orders@gmail.com is entered in the Gmail address field, and a hidden value in the App password field. Under Sender information are the note that Gmail overwrites an unverified address with the authenticated account's address and sends from there, the Sender name Clothing store support, and the From address dailycloset.orders@gmail.com. At the bottom, How the sender appears to recipients shows From as Clothing store support <dailycloset.orders@gmail.com>](/_img/en-US/manual/deployment-and-integration/images/email-02-create.webp)

Once the test email goes out, "Order Notifications" is registered and appears in the **Email** list. <!-- TODO: 화면 흐름 확인: 저장한 뒤 목록과 상세 화면 가운데 어느 쪽이 열리는지 --> Check the `dailycloset.orders@gmail.com` inbox too, to see whether the test email arrived. If the account isn't registered, find the cause and the fix in [Troubleshooting](#troubleshooting).

![The Email list. The Order Notifications row shows Provider Gmail, Sender Clothing store support <dailycloset.orders@gmail.com>, SMTP endpoint smtp.gmail.com:587, SMTP username dailycloset.orders@gmail.com, and Updated at, with a menu icon at the right end of the row](/_img/en-US/manual/deployment-and-integration/images/email-03-list.webp)

To pick the registered "Order Notifications" in a *Script*, you need its ID ([Find the ID to write in your Script](#find-the-id)).

### Find the ID to write in your Script {#find-the-id}

To pick "Order Notifications" in a *Script*'s `EmailSend`, you need to know its ID.

1. In the left menu, open **Email** under **Management**. The list shows the **Name**, **Provider**, **SMTP endpoint**, **SMTP username**, **Sender**, and **Updated at** columns.
2. Click "Order Notifications" in the list. The detail screen of "Order Notifications" opens.
3. In the right panel, under **Email Account**, click the copy icon next to **ID** to copy the ID.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The detail screen of Order Notifications. At the top right are the Email Account guide link and the Delete, List, and Save buttons. Basic information has the Name field. Under Connection settings, Provider Gmail, SMTP server smtp.gmail.com, Port 587, Security STARTTLS, and Gmail address dailycloset.orders@gmail.com are shown as text you can't edit, along with a note that connection settings can't be changed after creation and that to use a different server or a new password you copy these settings into a new account, and the Create a copy with these settings button. Sender information has the Sender name Clothing store support, the From address field, and the From preview. The right panel shows the Email Account ID with a copy icon, Version, and Changes](/_img/en-US/manual/deployment-and-integration/images/email-06-detail.webp)

### Register a sending server that isn't on the list {#register-a-custom-server}

Say the clothing store runs its own mail server, `smtp.dailycloset.com`. These steps register the *Email Account* "Self-Hosted Order Notifications" with this server. Your plan must allow **Custom SMTP** ([Which sending servers you can use](#which-servers-you-can-use)).

1. In the left menu, open **Email** under **Management**.
2. Click the **Create** button at the top right. The "Create Email Account" screen opens.
3. Enter `Self-Hosted Order Notifications` in the **Name** field.
4. Select **Custom SMTP** in **Provider**.
5. Enter `smtp.dailycloset.com` in the **SMTP server** field.
6. Enter `587` in the **Port** field.
7. In **Security**, select the method that server uses (**STARTTLS** or **TLS**).
8. Enter the server's sign-in account, `orders@dailycloset.com`, in the **Username** field.
9. Enter that account's password in the **Password** field.
10. Enter `Clothing store support` in the **Sender name** field.
11. Enter `orders@dailycloset.com` in the **From address** field.
12. Click the **Create** button at the top right.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The Create Email Account screen with Custom SMTP selected as the Provider. Self-Hosted Order Notifications is entered in the Name field, smtp.dailycloset.com in the SMTP server field, and 587 in the Port field, and Security has STARTTLS selected out of STARTTLS and TLS. orders@dailycloset.com is entered in the Username field, and a hidden value in the Password field. The Sender name is Clothing store support and the From address is orders@dailycloset.com, and the From preview shows Clothing store support <orders@dailycloset.com>](/_img/en-US/manual/deployment-and-integration/images/email-05-custom-smtp.webp)

When you click the **Create** button, a test email is sent to `orders@dailycloset.com`, and once it goes out, "Self-Hosted Order Notifications" appears in the list ([A real test email is sent when you register](#test-message-on-create)).

### Edit the name and sender information {#edit-sender-info}

These steps change the **Sender name** of "Order Notifications" to `Cozy Closet support` so that the store's name shows in customers' inboxes.

1. In the left menu, open **Email** under **Management**.
2. Click "Order Notifications" in the list. The detail screen opens, and you edit right on this screen.
3. Change the value in the **Sender name** field to `Cozy Closet support`.
4. Click the **Save** button at the top right. You can't click **Save** until you change a value.

![The detail screen of Order Notifications with the Sender name changed to Cozy Closet support. The Save button at the top right can now be clicked, and the From preview has changed to Cozy Closet support <dailycloset.orders@gmail.com>. The connection settings are shown as text you can't edit](/_img/en-US/manual/deployment-and-integration/images/email-09-edit.webp)

Mail you send after saving shows `Cozy Closet support` in customers' inboxes. For up to 1 minute after you save, mail may still go out under the name from before the edit. If you edited the **From address**, check on the first send that the sending service accepts the new address ([Connection settings can't be changed; only the name and sender information can be edited](#what-you-can-change)).

### Change the sending server or password {#replace-an-email-account}

These steps get a new app password from Gmail and switch "Order Notifications" over to it. Because you can't edit connection settings, you register a new *Email Account* and change your *Script*s to pick it. Follow the same steps to move to a different sending server.

1. Get a new app password from Gmail. How to get one is in [Preparing Gmail for sending](/manual/deployment-and-integration/email/gmail.md).
2. Register the *Email Account* "Order Notifications 2" with the new app password. The steps are the same as in [Register an Email Account](#register-an-email-account), and a test email is sent this time too. Under **Connection settings** on the detail screen of "Order Notifications", click **Create a copy with these settings** to open the "Create Email Account" screen. The Name field is filled in with "Order Notifications (copy)", the connection settings and sender information are filled in with the current values, and only the password field is empty. Change the name to "Order Notifications 2" and enter the new app password.
3. Find the ID of "Order Notifications 2" ([Find the ID to write in your Script](#find-the-id)).
4. In every *Script* that picked "Order Notifications", change the *Email Account* in `EmailSend` to the ID of "Order Notifications 2", and save.
5. Check that order confirmation emails go out through the new *Email Account*.
6. Delete "Order Notifications". The steps are in [Delete an Email Account](#delete-an-email-account).

If you think the app password has leaked, delete that app password in Gmail first. From that moment, "Order Notifications" can't send mail, but the leaked value can't be used anymore either.

### Delete an Email Account {#delete-an-email-account}

These steps delete "Order Notifications", which you no longer use. If a *Script* picks this *Email Account*, switch it to a different *Email Account* first. Deleting isn't blocked even if such a *Script* exists.

1. In the left menu, open **Email** under **Management**.
2. In the list, click the menu icon at the right end of the "Order Notifications" row.
3. Click **Delete** in the menu. The row menu has only **Delete**. You can also delete it with the **Delete** button at the top right of the detail screen.
4. In the "Delete Email Account" confirmation window, click **Delete**. The window notes that the saved password is deleted along with the account and that this can't be undone, and that any *Script* using this account will fail from its next send.

![The menu of the Order Notifications row opened in the Email list. It has a single Delete item in red](/_img/en-US/manual/deployment-and-integration/images/email-07-row-menu.webp)

![The Delete Email Account confirmation window. Below the message "Do you want to delete Order Notifications? The stored password is deleted with it and this can't be undone. If a Script uses this account, its next send will fail." are the Cancel and Delete buttons](/_img/en-US/manual/deployment-and-integration/images/email-08-delete-confirm.webp)

A deleted *Email Account* can't be restored. For what happens after deletion, see [Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items).

## Troubleshooting {#troubleshooting}

| Problem | Cause | What to do |
|---|---|---|
| You can't open the **Email** screen or register an *Email Account* | Your role doesn't have **Manage Email Accounts** | Ask a *Space* admin for **Manage Email Accounts** |
| You clicked **Create**, but the account isn't registered and a notice says it was refused | The sending server refused the connection, the sign-in, or the test email. Common causes are entering your account password, a wrong password or port, or setup that isn't finished on the sending service's side | Check the reason in the notice, and follow the steps on the setup page for your Provider again ([Fields that differ by Provider](#provider-fields)) |
| Registering with Resend is rejected | The **From address** you entered is at a domain you haven't verified in Resend | Verify the domain in Resend, then register with an address at that domain |
| You can't register with **Custom SMTP** | Your current plan doesn't allow servers that aren't on the list | Use a preset service, or upgrade your plan ([Pricing](/pricing/pricing.md#plan-comparison)) |
| The **Custom SMTP** server address won't register | It's a private network address or an address that points to the computer itself, or its domain can't be found | Change it to an address reachable over the internet |
| You can't register a new *Email Account* | This *Space* already has 100 registered | Delete *Email Account*s you don't use |
| The test email went to two places | The username is in email address format and differs from the **From address**, so a separate email went to each address | This is normal. It lets the mail account's owner find out about the registration |
| The account was registered, but no test email arrived at the username's address | The account is registered as long as the email goes out to at least one of the two places | Confirm the connection with the test email that arrived at the **From address** |
| You got a connection notice email, but you didn't register anything | Someone registered an *Email Account* with your mail account's sign-in details | Change your password or delete the app password at your mail service. That *Email Account* then can't send anymore |
| There's no field for editing the password or **SMTP server** | Connection settings can't be changed after registering | Swap in a new account following [Change the sending server or password](#replace-an-email-account) |
| You want to see the registered password again | Passwords aren't shown anywhere after registering | Get a new password from the sending service and register again |
| Recipients see a different address | Gmail replaces an unverified address, and Naver replaces any other address, with the signed-in account's address when sending | Use the signed-in account's address as the **From address**, or use a service that lets you use the address you want ([Rules for the From address](#sender-address-rules)) |
| Mail is refused after you edit the **From address** | Editing doesn't send a test email, so an address the sending service won't accept can still be saved | Change it again to an address that service allows |
| You edited the sender information, but mail goes out with the old information for a short while | For up to 1 minute after you edit it, the old sender information may still be used | Wait a moment |
| A *Script*'s mail fails with `EmailSend could not reach the provider` | The password was changed or the app password deleted at the sending service, or the sending server couldn't be reached | If the password changed, register again with the new value and swap it in |
| A *Script*'s mail fails with `EmailSend was refused by the provider` | The sending server refused the recipient address or the **From address** | Read the sending server's text that follows, and fix the address |
| A *Script* fails, saying the picked *Email Account* doesn't exist | That *Email Account* was deleted, the ID belongs to another *Space*, or the ID was written wrong | Change it to the ID of an *Email Account* in the same *Space* ([Find the ID to write in your Script](#find-the-id)) |
| You deleted an *Email Account*, but mail keeps going out for a short while | For up to 1 minute after deletion, mail may still be sent | Wait a moment ([Deletion rules](/manual/common/deletion.md#deleting-other-items)) |
| All mail sending has stopped | The *Organization* has used up this month's external call transfer volume | Wait for next month, or upgrade your plan ([When you exceed transfer volume or storage space](/pricing/pricing.md#over-usage)) |
| You can't work with *Email Account*s using a *Space Access Token* | Tokens can't handle *Space* settings | Do it in Content Studio ([Settings permissions work only for people](/manual/access-and-permissions/role-and-permissions.md#settings-are-for-people)) |

## Related docs {#related}

- [Sending email](/getting-started/core-concepts/deployment-and-integration/email.md): Covers what an *Email Account* is and, with diagrams, the flow from preparing a sending service to sending mail.
- [Preparing Gmail for sending](/manual/deployment-and-integration/email/gmail.md): Covers the steps for getting the app password you enter to send with Gmail. The setup pages for Naver, Resend, and Brevo are gathered in [Fields that differ by Provider](#provider-fields).
- [Script settings and rules](/manual/deployment-and-integration/script.md): Covers the settings and execution logs of *Script*s that send mail with an *Email Account*.
- [Role and permission rules](/manual/access-and-permissions/role-and-permissions.md): Covers how to turn on the **Manage Email Accounts** permission.
- [Deletion rules](/manual/common/deletion.md): Covers what happens when you delete an *Email Account*, and what goes away along with a deleted *Space*.
- [Pricing](/pricing/pricing.md): Covers the sending servers you can use and the external call transfer volume on each plan.
- [API reference](/api/reference/cma/email-account.md): Covers technical specs, such as the request formats you need to register and manage an *Email Account* from a program.
