---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/support/forms/en/send-mail.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/forms/en/llms.txt

# Sending an email

You can integrate your form with Yandex Mail so that a notification is sent automatically when the user fills out the form.

## Configuring notifications {#setup}

1. Select the desired form and open the **Integration** tab.

1. Select a [group of actions](https://yandex.com.tr/support/forms/en/notifications.md#add-integration) for which you want to set up sending emails and click ![](_assets/mail-notification-new.png) **Email** at the bottom of the group.

1. Under action settings, fill in the following fields:

    - **To**: Email address to send the notification to. You can list multiple addresses separated by commas, or set a variable.

        - To send a notification to the form creator's email,  select the **Form creator's email** variable.

        - To send a notification to the Yandex email account the user was logged in to when filling out the form, select the **Email** variable. This option is only available to Yandex Forms for business users.

        - To send a notification to the address the user entered when answering a question, add the **Question answer** variable and select the <q>Email</q> question type.



    - **Sender**: Sender name you want the recipient to see.

    - **Send response to**: Email address the recipient can send responses to. If not specified, your respondents will not be able to reach you by email.

    - **Subject**: Email subject.

    - **Text**: Email text.

    - If necessary, add service headers to the message. To add a header:

        - Click <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.17 1.67a.83.83 0 1 1 1.66 0v7.5h7.5a.83.83 0 1 1 0 1.66h-7.5v7.5a.83.83 0 1 1-1.66 0v-7.5h-7.5a.83.83 0 1 1 0-1.66h7.5v-7.5z"/></svg></svg> **Add header**.
        - Specify a name and value for each header.
           The header name must begin with the prefix `X-` and must not contain Cyrillic characters. Otherwise, the header will be ignored. Header name example: `X-Form`.
        - You can use [variables](https://yandex.com.tr/support/forms/en/vars.md) as parameter values. To do this, click <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.17 1.67a.83.83 0 1 1 1.66 0v7.5h7.5a.83.83 0 1 1 0 1.66h-7.5v7.5a.83.83 0 1 1-1.66 0v-7.5h-7.5a.83.83 0 1 1 0-1.66h7.5v-7.5z"/></svg></svg> on the right of the field. If you're using a variable, enable **Send if value is set**.

    You can insert an answer to a question or other form data in any field:

    - Select the field and click <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.17 1.67a.83.83 0 1 1 1.66 0v7.5h7.5a.83.83 0 1 1 0 1.66h-7.5v7.5a.83.83 0 1 1-1.66 0v-7.5h-7.5a.83.83 0 1 1 0-1.66h7.5v-7.5z"/></svg></svg> on the right.

    - Select a [variable](https://yandex.com.tr/support/forms/en/vars.md) from the list to add to the field. For example, you can add a variable to address the user by their name or to include their [test results](https://yandex.com.tr/support/forms/en/tests.md) in the email.

    ![](_assets/mail-var-example-new.png =600x)

1. To attach a file from your computer to the email, click **Attach file**.

   To attach the files that the user sent in response to the form to your email, select questions of the <q>File</q> type from the **Attach files from question answers** list.</p>


    {% note info "" %}

   The maximum total size of the email is 9 MB. This includes technical information, the message body, and the attached files.

   {% endnote %}


1. To display a message informing the user that an email was sent after they filled out the form, enable the **Show messages about the results of actions** option under the action name.

1. Click **Save**.

To send multiple email notifications at once, add new actions using the ![](_assets/mail-notification-new.png) **Email** button at the bottom of the action group.

If you want notifications to only be sent to users who gave certain answers, [set your conditions](https://yandex.com.tr/support/forms/en/notifications.md#conditions).

> Sample notification for a form with a questionnaire for job applicants Once the form is filled out, the survey answers are sent to the HR department's email address.
>
> ![](_assets/email-example-new.png =700x)

## Troubleshooting {#troubleshooting}

If you set up email notifications but are not getting emails after filling out the form, check your **Spam** folder and see if there are errors when sending emails.

### Check your **Spam** folder {#error-spam}

If you are not receiving email notifications, check your <q>Spam</q> folder. If emails from Yandex Forms were sent to the **Spam** folder, mark them as <q>Not spam</q>.

 If you use your own mail server, <q>whitelist</q> the sender addresses: `<form_ID>@forms.yandex.com` and `sndr.bnc@yandex.ru`.

### Check the email text {#error-text}

The mail server can block an email if its text is missing or looks like spam. Fill out or edit the email text.

### Check the size of attachments {#error-size}

If a file attached to an email is too big, the mail server will not be able to send it. When this happens, the following error message will appear:

```
Error class: EmailMaxSizeExceededError
Error message: Total file size must be less than 9 MB.
```

    {% note info "" %}

   The maximum total size of the email is 9 MB. This includes technical information, the message body, and the attached files.

   {% endnote %}

To avoid this error, limit the maximum size of files that users can attach to forms. To do this, in the **File** question settings, set the [maximum total file size](https://yandex.com.tr/support/forms/en/blocks-ref/file.md#max-size) to no more than 8 MB.

If you need users to be able to attach large files to their answers, use **Share link** or **Short text** questions. This way, users will be able to link files uploaded to an external hosting.

### Check for integration errors {#error-history}

{% include notitle [inregration-errors](_includes/inregration-errors-633101021e33.md) %}

### If there are no spam notifications or error messages {#error-support}

If you have no notifications in the <q>Spam</q> folder or errors in the **Integration** tab, the email may be blocked by the recipient's mail server. To find out why the email is blocked:

1. Open the form with notification issues and click **Integration** at the top of the page.

1. In the email notification settings, go to the **Send response to** field and enter your personal or corporate email.

1. The next time the mail server blocks a notification from the form, an error message will be sent to the email that you specified. Copy the message text.

1. [Contact Yandex Forms support](https://yandex.com.tr/support/forms/en/feedback.md) and include the error message that you received.
