# Email campaigns

{% hint style="success" %}
Mailing lists are available only on the "Business" and "Infobiz" pricing plans.

Mailing lists are not available on the free plan, as well as during the three-day trial period, which is activated when the project is created.
{% endhint %}

{% hint style="warning" %}
Attention!&#x20;

The maximum number of scheduled messages per client is 32 messages.
{% endhint %}

**Invalid email addresses** - are addresses that are misspelled in the domain (@mail.ru ) or the prefix (name@). Invalid addresses are also called non-existent addresses, duplicates, temporary and disposable mailboxes, and spam traps.

**Valid email addresses** - are existing and correctly written addresses that have not been detected in suspicious activity. That is, those who can receive mailings.

Mailings can be sent manually, the so-called manual mailings, ссылка [ручные рассылки](https://docs.mavibot.ai/mailings/broken-reference), and whole schemes have been built, so to speak, "smart" mailings, such as autoworks, - ссылка [автоворонки](https://docs.mavibot.ai/mailings/broken-reference), when different scenarios are taken into account.

Auto-mailing is a chain of messages, whole scenarios that lead the customer step by step from the moment they get acquainted with the product to the final goal of buying it, without human intervention and without taking into account variability.

Mailing lists can be either one-time, mass or group.

In this section, we'll talk about Email mailings.

{% hint style="warning" %} <mark style="color:red;">**Attention!**</mark> For email mailings from a file, addresses are checked for their existence (validity). If the percentage of invalid addresses is more than 5%, the mailing list is canceled. This is to avoid being blocked and getting spam.
{% endhint %}

{% hint style="warning" %}
If the **recipient's email server** blocks **Russian IP addresses**, the emails will be sent and counted within the outgoing message limit. But the recipient won't see them.\
\
Unfortunately, we cannot affect this situation.
{% endhint %}

{% hint style="info" %}
Сlist of current IP addresses for mailing:

* 158.160.37.232 - for mailings;
* 62.84.112.69  - for mailings 2;
* 51.250.88.49 - for mailings 3.&#x20;
  {% endhint %}

{% hint style="warning" %}
During downloading clients from a file, the offset and sending functionality is NOT AVAILABLE!
{% endhint %}

{% hint style="info" %}
**Sending and receiving reply emails** from clients is **ONLY** available if the Domain of the email bot connected to the project is **linked to Mavibot!**\
&#x20;\
Read more here:How to link a mail domain ссылка [Как привязать почтовый домен](#privyazka-domena-i-sozdanie-pochtovykh-yashikov)\
\
&#x20;If the email bot's **Domain** is linked **to another service**, then **only sending emails** is available.
{% endhint %}

## Connecting email bot

To create email mailings, firstly you need to connect the Email bot in the Channels - “Email" section.

Next, you need to enter the email address from which the sending will be performed, and the sender's name, which will be shown to the recipient.

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FeknFfp2SGMTvW9Z3ooqU%2Fimage.png?alt=media\&token=ded41f0a-b1d0-4e05-abae-ac75a2936d35)

After that, a new Email bot will appear in the list of connected channels, but it will not be authorized.

{% hint style="warning" %} <mark style="color:red;">**Attention:**</mark> You can't use free domains!

The free email services gmail/yandex/mail.ru and others have their own DMARC policy, according to which they block mailings and services that carry out such mailings.

A mailbox on your own or corporate domains is suitable for mailing lists.

Use domains with a Latin name! For example: cakeschool@мойдомен.рф
{% endhint %}

{% hint style="warning" %} <mark style="color:red;">**Attention:**</mark> If you have your own domain, but you don't have a mailbox on it, you can create one on our service in the Domains section. ссылка “[Домены](#privyazka-domena-i-sozdanie-pochtovykh-yashikov)”.\
If the mailbox is created on our platform, a confirmation code will not be required.
{% endhint %}

{% hint style="warning" %} <mark style="color:red;">Attention:</mark> <mark style="color:purple;">Только владелец домена</mark> ссылка Only the domain owner can create an email bot with his domain without confirmation.&#x20;
{% endhint %}

To log in, we need to confirm that the email is yours. An email with a confirmation code will be sent to the specified email address.

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FPVisgcpUe8IwBPfnioPJ%2Fimage.png?alt=media\&token=8bed8b63-2cae-4197-afe8-a8ef38775103)

An authorized email bot looks like this:

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FOFx3PhVrVqYwfjJnhyXi%2Fimage.png?alt=media\&token=c94ba5e4-45ca-459c-a4b7-ec1ab6de421d)

After connecting the email bot, a new tab will be available in the "Mailings" section:

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FXMcg7MiSpniN02w0zOWP%2Fimage.png?alt=media\&token=f2984c0d-ea24-4e41-a205-f280c1a6d1c4)

## Creating an email mailings

To create an email mailing, go to the appropriate section and click “Create mailing".

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FooEWy4iqJMCIuGdYgUga%2Fimage.png?alt=media\&token=0397b07c-a64b-4856-ac1a-7463ec2333af)

Email distribution, as well as mailing in messengers, takes place in 3 stages:\
**selecting recipients,** \
**forming messages,**\
**sending settings.**

You can specify the recipients of the mailing list using a filter based on existing email bot subscriptions or upload users with a file.

You can upload your user base as a file. You can download the file template by clicking on the question mark as shown in the screenshot below:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FBH8q5KbzWhHFR8L2HeaP%2F2023-05-04_19-32-55.png?alt=media&#x26;token=b85ef5ef-3f50-49e2-9d7a-1bafa83ad8f0" alt=""><figcaption><p>Screenshot from the Mailing List - Email mailing list - hint to the "Filter type".</p></figcaption></figure>

{% hint style="warning" %}
You can ONLY specify recipients' email addresses in the file. Other parameters (name, phone number, and other variables) They will NOT be included in customer dialogues.

During uploading a file to the mailing list, specify the UTF-8 encoding and the semicolon separator.
{% endhint %}

Clients can also be uploaded using the format file.CVS in the "Channels" section:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FVN2ifF0iDgDjRWCepegJ%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-31%20%D0%B2%2018.22.54.png?alt=media&#x26;token=7d44ebc6-ddcb-46ce-bc3d-5de1fa38d3dc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FSlhEJOMYxBNHPug4aDho%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-31%20%D0%B2%2018.23.05.png?alt=media&#x26;token=90559f36-d5f2-416a-b1f2-10fbb2f77bff" alt="" width="563"><figcaption></figcaption></figure>

Using the "Subscriber Filter" setting, you can filter out **existing email bot users:**

* by lists (you can either add or exclude a list)
* as of Mavibot CRM,
* according to the state of the clients (the block where the client is located),
* by connected messengers (from the Channels section),
* by variables,
* by registration date

During forming email messages, you can create any design and see in what form the letter will reach the user in the field “Mailing list preview.”

{% hint style="warning" %} <mark style="color:red;">**Attention!**</mark> The "Text of the letter" field is required.
{% endhint %}

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FJ1I5igrqtYIR4rnn8X8g%2Fimage.png?alt=media\&token=ce593448-57e3-4987-ac3f-fb2ceb290d1d)

{% hint style="danger" %} <mark style="color:red;">**Please note the special feature of Gmail mailing**</mark>

Carefully check the letter title in the appropriate field!\
If there is any typo in the letter title, then with the further implementation of this mailing, the letter title will be cached and **WILL NOT CHANGE**, even if you change the project.

The only way out of this situation is to add an additional symbol.

Example:

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FXIY0jn7pPjSIoBGLDAX3%2F2024-03-05_14-26-58.png?alt=media&#x26;token=a5b04f18-e078-432e-b19e-1b3917f7ebb5" alt="" data-size="original">

In this case, the subject of the letter will remain the same, even if you put a space between the words as follows:

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F1PvTvCOLL7LrmhiBNYka%2F2024-03-05_14-27-13.png?alt=media&#x26;token=4b348c0f-515c-4d75-aabb-176b86744804" alt="" data-size="original">

The email will come with the subject, as in the first version, although you added a space.

To get out of the situation, correct the typo and add an additional character:

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FUKxHfAzU7tt9MYAcTsOP%2F2024-03-05_14-27-27.png?alt=media&#x26;token=68a72926-2ef3-4f23-adde-3d4bf95c6bc5" alt="" data-size="original">

This is not observed in other email services. Only in Gmail.
{% endhint %}

Also, in the "Messages" section, you can add buttons with links to the channels you need (connected to the project), or create your own button with an embedded link.

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FdTO6INQuOVZkMifFEjtN%2Fimage.png?alt=media\&token=55b6df28-b429-403a-aae1-b5f67a3a2172)

{% hint style="warning" %}
**Attention!** If you do not enable the "Save mailing to correspondence history" slider during sending emails, the opening statistics **will not be counted.**
{% endhint %}

In the third “Sending” tab, you are asked to fill in:\
\- sender's name (if it is empty, the name specified in the Email bot will be displayed)\
\- sending time\
\- the interval between the mailing messages\
\- settings for splitting the mailing list into parts

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FHjJI5qlGX62xDySVkNAV%2F2024-03-21_16-28-01.png?alt=media&#x26;token=7e18b393-2ddf-41c2-af76-f0f3f745a8f9" alt="" width="563"><figcaption></figcaption></figure>

In the same tab, you can see the "Save mailing in the history of correspondence with the client" checkbox:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F9SApTOZKjejgI3G8UQ3b%2F2024-03-21_16-29-01.png?alt=media&#x26;token=1b94272b-c729-4a85-b3f5-0f368bb91a5f" alt="" width="422"><figcaption></figcaption></figure>

Если есть сообщество вконтакте с включенным чекбоксом "Прочитанность сообщений", то необходимо убрать галочку и сохранить по умолчанию:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FTTjG7BlPquRMFID6x5Bv%2F2024-03-21_16-32-28.png?alt=media&#x26;token=b9a03651-127e-4fd9-8120-c38d3a0cd598" alt=""><figcaption></figcaption></figure>

An example of an email received from a mailing list

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F3a9343dE8x7CGjHv3V1X%2Fimage.png?alt=media\&token=be5d1bf8-debb-479c-843a-1d0a11d1ca72)

### The "Unsubscribe from the mailing list" button

The "Unsubscribe from mailing list" button in the email appears automatically at the bottom of the email text during creating a mailing list in the Mailings section.

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FttCKdXXLrRKjRX8A7D1b%2F2023-03-05_16-08-16.png?alt=media&#x26;token=317bc38d-7d4a-46d5-8133-bcc582dba2c4" alt=""><figcaption><p>Поле Предпросмотр рассылки - кнопка Отказаться от рассылки</p></figcaption></figure>

### Client rating in mailings

In Mavibot, each email client has its own rating. It can be found in the client's card:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FhdEiiLSUarOY6wCIxTZ6%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-07-17%20%D0%B2%2017.45.40.png?alt=media&#x26;token=007f916b-244c-409e-8b7b-1ad7505ffa09" alt=""><figcaption></figcaption></figure>

When a client is automatically added, the rating is 7. If you manually added a client to the system, the client is assigned a rating of 10.

If the rating drops to 1, the client is blocked.

If the average customer rating in the mailing is below 6, the mailing will not be launched.

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FlNL1YadVEMUp32crzn47%2F2024-07-17%2018.05.14.jpg?alt=media&#x26;token=87229224-0e97-4998-bd05-2de060b1d25b" alt=""><figcaption></figcaption></figure>

This is done so that your emails do not end up in spam, and the delivery rate is maximum and the reputation of the service is high.

#### How is the rating formed?

1. If a notification is sent to Mavibot email server stating that the mailing address is suspicious for one reason or another, the client's rating is automatically lowered to one and blocked.
2. If Mavibot email server receives a notification that the client's mailbox is full, then for each undelivered email, the client's rating will decrease to 1.
3. If you receive an email from a low-rated email address, the client's rating is automatically increased to 10 (this means that the mail is "alive");
4. If the client's rating is higher than one, the email will still be sent.

### Notification of reading: message\_read

A message reading feature is available for email bot clients. You can set notifications for read messages.

To do this, turn on the icon with two checkmarks in the message block.

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FJ9g5BYz7YP9Wg6RpiWNG%2Fimage.png?alt=media&#x26;token=ac85e11b-7999-41c2-a79f-cdd68a126a77" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Attention: **The callback about the review works in email!**
{% endhint %}

{% hint style="danger" %}
Attention: The **callback will be received** only <mark style="color:orange;">**if the client is in this block**</mark>, if he has left it, then there will be no callback.
{% endhint %}

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F2W8NWwVkG8Den4dBi7C2%2Fimage.png?alt=media&#x26;token=ab8cc17b-c9ef-4545-a9d2-95901ce4d33c" alt=""><figcaption><p>Example of a Read notification for launching a block with a condition</p></figcaption></figure>

{% hint style="warning" %}
The mailing should be created in the funnel constructor from the dialog status blocks.

There is **no status from the Mailing  section** or from the blocks - read statistics <mark style="color:red;">**WILL NOT BE COUNTED.**</mark> Because the client <mark style="color:red;">**is not in these blocks.**</mark>
{% endhint %}

## Linking a Domain and creating mailboxes

{% hint style="warning" %}
Please note!

If the domain is not registered in Mavibat, but on a third-party service, dkim and SPF records (both at once!) are required for correct operation. сссылка [dkim](#dkim-zapis), [SPF](#spf-zapis). You can get them in the email bot settings.

Read more about this below. ссылка [ниже](#spf-zapis).&#x20;

<mark style="color:red;">**Without these records, google and Yandex mail will BLOCK outgoing emails!**</mark>

Setting dkim-, spf-records is performed in the project settings in the "Channels" section.

Find the email channel and go to settings:

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F8wHHbeWGnyHVtxwzg91B%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.16.31.png?alt=media&#x26;token=40c8431c-b715-4daf-99b3-3cb809dcd18f" alt="" data-size="original">

In the modal window that opens, you will see fields to fill in for -dkim and -spf records:

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FAkCx9MRU07XN8XEShsqp%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.17.08.png?alt=media&#x26;token=3983ef84-f7d3-4c4c-8a44-26db5b760306" alt="" data-size="original">
{% endhint %}

If you have your own domain, you can connect it to your account. To do this, go to the “Domains" section.

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FM5W5BAUIyfvUvWGcCYX5%2Fimage.png?alt=media\&token=f8b9d391-8586-4be1-9e6b-7b500c51d19d)

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FGIAHLxsxHwdcfVNrWjag%2Fimage.png?alt=media\&token=512053cf-ace6-429c-92d4-0c2a99b660d1)

Enter your domain name in the field and click on the "Add domain” button

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F7iQrEwuL7Fjby5A3e2aZ%2Fimage.png?alt=media\&token=d5b50957-789e-4b65-adbc-4f5b0777a3a3)

After that, the domain will appear in the list. To start working with it, you need to confirm that the domain is yours. To log in, log in to your DNS dashboard and follow the instructions. (example below - reg.ru )

{% hint style="warning" %} <mark style="color:red;">Attention:</mark> DNS record settings do not take effect immediately. Sometimes you need to be patient.
{% endhint %}

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FzOIgnWCt7nMOOAa6bgU0%2Fimage.png?alt=media\&token=b0a0502b-8f71-4e3b-a112-344b096cb185)

Go to the domain settings panel.

![](https://lh5.googleusercontent.com/-7Mq1pQVRQG8-y_HSPWEiVceiD7Eupe9sVzWtm224z-CyHy8mRpGnaJv3J7_3LvQnzDSyrb6YsT04KYaYUFzqzMqnEGBd_hZUNETtt1n1bMZBeKauuL9SbbR-c6Ymj8jYdLtQQaANku_TwejxmJOb8o)

Select the desired domain and click “Configure” - the dns control panel will appear.

For authorization, we create a new resource record.

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2Ffu9hm3OD0Ksj5ny4h1c5%2Fimage.png?alt=media\&token=ee7495c1-b782-4686-845e-fe41fc20bdec)

Next, you need to configure the domain so that it allows you to send mail through Mavibot.

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F6YnKCJwmCvdFm5mKniAg%2Fimage.png?alt=media&#x26;token=d499bd2b-6d17-4313-a7fa-85433935a03c" alt=""><figcaption></figcaption></figure>

### **MX record**

![](https://lh4.googleusercontent.com/Hm87lzVSPBpAQ6TcHtF30jqHw_pubdS6Cav75hkzEvNEbEBwasR6PHvN-9etnnToh0TmcoMruJLaPuLABuWgTJFnId9IPqVZA6Vyo-5xVQ-FrZIxyfnVyUZmB_ZF-6SdRWkBed68V1vKehnOtOgSMj8)

{% hint style="warning" %} <mark style="color:red;">Attention!</mark> If, during creating an mx-record, the panel automatically adds your domain to “mail.mavibot.pro ”as shown in the picture below, it is necessary to correct the value and put a point at the end of the entry: “mail.mavibot.pro .”
{% endhint %}

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FVYwiH7LtD2KMreTBhUpJ%2Fimage.png?alt=media&#x26;token=cba0819e-4ef7-4d46-98c5-e31d53cb439b" alt=""><figcaption><p><mark style="color:red;"><strong>Пример неправильного ввода</strong></mark></p></figcaption></figure>

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FFI5YXw3745MhhQZTBCSb%2Fimage.png?alt=media&#x26;token=6728852f-74eb-4d52-83c7-8f31400bd967" alt=""><figcaption><p><mark style="color:green;"><strong>Example of correct input</strong></mark></p></figcaption></figure>

### **SPF record**

{% hint style="info" %}
Please note!

If you have already created an spf record, then there is no need to re-create another one.

It is enough to add an insert to the first one "include:mail.mavibot.pro ":

<img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FjSVRl1LgVgpFC2XWKY0W%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.30.09.png?alt=media&#x26;token=3035b10f-6613-46e0-ac10-a2c9d99cdf43" alt="" data-size="original">
{% endhint %}

{% hint style="warning" %}
If your domain is not registered with Mavibot, you need to create a DKIM, SPF record (both at once)!\
Otherwise, google and Yandex mail will block letters!
{% endhint %}

![](https://lh5.googleusercontent.com/0r25D23PpCRRKdcoyA-i2p5VSVxaf0P2VbbAAQiXQB98Jy5gknj30ux5T-ulQ28Zpds6MNo03uqqqxJSl0EDZ1zGlCt9l8AjMl3GUKyMPt4MKHVJ1Xg0pyVKM15iQz_r2FLXWtb9AzK_MbWXlNE8XAc)

&#x20;

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FLjmQ6ivH5sXk0ys22MmB%2Fimage.png?alt=media&#x26;token=1fef8c4b-d20b-4e5d-a373-8f056b4e391d" alt=""><figcaption><p><mark style="color:green;"><strong>Example of correct input</strong></mark></p></figcaption></figure>

To set up an spf record, go to the "Channels" section and find the required email messenger:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FjuBs9Q6qZbFArC5S0EaS%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.16.31.png?alt=media&#x26;token=373abec6-297b-40c1-98d4-e5620aba2ea4" alt=""><figcaption></figcaption></figure>

Click on settings:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FXADIzOIlaINP2nk6X7Ff%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.17.08.png?alt=media&#x26;token=9ef7e6e9-5aa8-4d8d-926f-291ad4037d82" alt=""><figcaption></figcaption></figure>

Here you will see fields for filling in dkim and spf records.

### **DKIM record**

{% hint style="warning" %}
If your domain is not registered in Mavibot, you need to create a DKIM, SPF record (both at once)!\
Otherwise, google and Yandex mail will block letters!
{% endhint %}

![](https://lh6.googleusercontent.com/7RaAIP7b72GIK2YHVKA1S3s51yTYFgu-XX2q13AOptMBvtF0YrqtHu4CHH49DmeeCcYWkdYKU-TowIuhAFeLgV7K7HoRuSVVNJeacRJbHSLHywpiYZrVur4KnnQLzyco7KW0so7rlS_TagJ0D8o6g4k)

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F4xmxXglZ5wh4gLHx3D6o%2Fimage.png?alt=media&#x26;token=48d16c04-f20a-4250-b5c7-02ee37c19690" alt=""><figcaption><p><mark style="color:green;"><strong>Example of correct input</strong></mark></p></figcaption></figure>

To set up a dkim record, go to the "Channels" section and find the required email messenger:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FjuBs9Q6qZbFArC5S0EaS%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.16.31.png?alt=media&#x26;token=373abec6-297b-40c1-98d4-e5620aba2ea4" alt=""><figcaption></figcaption></figure>

Click on settings:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FXADIzOIlaINP2nk6X7Ff%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202024-05-06%20%D0%B2%2017.17.08.png?alt=media&#x26;token=9ef7e6e9-5aa8-4d8d-926f-291ad4037d82" alt=""><figcaption></figcaption></figure>

Here you will see fields for filling in dkim and spf records.

### **DMARC record**

![](https://lh3.googleusercontent.com/Vi-WSrVBLpsfuUlvjx6OJaCHDUShNSmdVF055YxgS6MIQ5Ic7XAJLHhnxQ57BvWn8EaKl6Xp49E1kIaie7W-gzOo1LJvb690XStJCHLzK96lN86E7yQ8sYtIhBnK9ozbVfNSMR1TlXslioQTCuhQtGM)

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FGCPOHZYt2H1REAZAScx7%2Fimage.png?alt=media&#x26;token=484ba7c9-c9bc-4021-9e87-b025dfcd3b1e" alt=""><figcaption><p><mark style="color:green;"><strong>Example of correct input</strong></mark></p></figcaption></figure>

As a result, the correct setup looks like this:

![](https://lh4.googleusercontent.com/ttb-sC2XuNtq2V_SVKa3VjCnp0PkZm2w6qUR9un_mm2p8VeMC_QuxPMufQ68L2BsVX0zgOV4aEUAHJabFoYUVQmR62XsrfFZF1kNunGlcpSby5etrBRyQXiaSANawC31pv2U0I5yymTn7VnBTT0t5G4)

After authorization and domain configuration, you can create mailboxes:

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FMOV0bbmjcIrEUU1s4W6Z%2Fimage.png?alt=media&#x26;token=baa78c83-787b-4f54-8fa4-0f435dec9fdf" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F8GKV0GYTyhQmzWrERD2B%2Fimage.png?alt=media&#x26;token=db0aaac4-4c2e-426e-9baf-5d5c0aac3722" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2Fh4ut0Ay5UlS3QpzcRnNl%2Fimage.png?alt=media&#x26;token=462b1d42-b950-436d-81b0-0f3d494da744" alt=""><figcaption></figcaption></figure>

The mailboxes are ready to work. They can be used during registering an Email bot:

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F3hXmvMaTmgX8EjBsaxko%2Fimage.png?alt=media\&token=55bfe652-aed4-428f-95ca-07d2788ee1dc)

![](https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FzYLAvHFAS8ByYFoyQCvf%2Fimage.png?alt=media\&token=b2281eb9-1ff7-421a-8688-774f3b389fc5)

## How to use SMTP from Mavibot

{% hint style="success" %}
You **don't NEED** to connect SMTP to send emails!\
\
**SMTP can be connected:**

* If you are familiar with the concepts of port and domain;
* you know what SMTP is and how to use it?;
* you plan to connect mail to other services (for example, outlook, Thunderbird, and others);
* you plan to send mailings from your website.

&#x20;If you <mark style="color:green;">**plan to use mail ONLY on Mavibot**</mark>, you probably <mark style="color:green;">**DON'T NEED SMTP.**</mark>
{% endhint %}

### How to connect **SMTP**

To enable SMTP, you need to register your domain in your Mavibot account and create a mailbox (see how to do this here). ссылка [здесь](#privyazka-domena-i-sozdanie-pochtovykh-yashikov)).

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FXLQHPXNZkAsGHLF2hxeZ%2Fimage.png?alt=media&#x26;token=cae5b032-f88c-4bfc-a123-d47ebe0f6447" alt=""><figcaption></figcaption></figure>

Next, select the desired mailbox and click on “Connect SMTP".

{% hint style="danger" %}
After making an SMTP connection request and until it is approved, emails from the mail specified in the request **WILL NOT BE SENT!**

\
If the request is rejected, you **CAN'T** send emails from the specified email address. For a new request, you will need to create a new mail for the domain and reconnect the bot in the Channels section.
{% endhint %}

You will see a questionnaire to fill out. You need to select the project that your connection will be associated with. The message limit will be deducted from it during sending emails via SMTP. Next, there will be questions about the purpose and scope of the mailbox.

{% hint style="warning" %} <mark style="color:red;">**Attention!**</mark> We ask you to answer as honestly and fully as possible. It depends on your answers whether the moderators will approve the possibility of activation.
{% endhint %}

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FLNsro8wQykdbLr25a9Br%2Fimage.png?alt=media&#x26;token=9df33f5d-ffaa-4cd2-8286-b68112b952a8" alt=""><figcaption></figcaption></figure>

After filling out the form, the mailbox will have the status “SMTP connection request is under moderation”. This means that the application has been submitted to the administrators and the response will be sent to your account's email address within 24 hours.

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2F92Ko3S7Fber1J6yK7WK9%2Fimage.png?alt=media&#x26;token=befe4796-26b0-4e22-b1ec-28b123bc5019" alt=""><figcaption></figcaption></figure>

Если запрос прошел проверку, у вас появится возможность посмотреть параметры подключения. Для этого нажмите на “Информация о SMTP”.

{% hint style="warning" %} <mark style="color:red;">**Attention:**</mark> Port 25 is not supported. You only need to use the specified ports - connection ports with traffic encryption 465 and 587.
{% endhint %}

{% hint style="warning" %} <mark style="color:red;">**Attention:**</mark> The mailbox password can be changed.
{% endhint %}

{% hint style="warning" %} <mark style="color:red;">**Attention**</mark>: You can log in with a username and password, for example, to outlook or thunderbird and manage correspondence outside of Mavibot.
{% endhint %}

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FkJzSxD4SyRrd0SB6coUx%2Fimage.png?alt=media&#x26;token=18b75f85-c68f-4065-896a-f0fbe06bab3e" alt=""><figcaption></figcaption></figure>

Example of a Rails connection:

```
ActionMailer::Base.smtp_settings = {
   address: 'mail.salebot.pro',
   port: 465,
   user_name: '2@rzyanny.online',
   password: '123Hello_world',
   domain: 'mail.salebot.pro',
   authentication: 'login',
   enable_starttls_auto: true
}
```

If the request was not verified, the mailbox will have the status “SMTP connection request rejected".

<figure><img src="https://3082172314-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2IhL1FJdHq200VfDspKS%2Fuploads%2FGOGNDANJJ5nwE70kC80K%2Fimage.png?alt=media&#x26;token=bdf57aeb-2274-4e20-a8d0-e1943d89b2b3" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To find out the reason for the refusal, contact technical support. Perhaps, after clarifying the data, the application will be approved.
{% endhint %}

## Sending/forwarding a prepared template/ draft/ previously sent email

{% embed url="<https://docs.salebot.pro/peremennye-1/kalkulyator#dlya-peresylki-chernovika-otpravlennogo-pisma-email>" %}
