# How to set up an automated email for a segment

1. To create an automated email for a segment, log in to your beabee instance and click *Contacts* in the bottom-left corner. Then select the contact segment for which you want to set up an automated email. You can read about how to create segments [here](https://wiki.beabee.io/help-center-english/community-database/segmentation/how-to-create-a-segment).
2. Click the small email icon above the contact list and select *Send email* from the drop-down menu.

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2FC5CbEdQYrtPGTXXA506T%2FBE2E1D2B-657E-4C4D-986A-9F0751B93A56_1_201_a.jpeg?alt=media&#x26;token=9286fdf0-30d2-43b6-abde-21e0c5c2f14f" alt=""><figcaption></figcaption></figure>

1. To have your email sent automatically, select the *Ongoing email* option. Click [here](https://wiki.beabee.io/help-center-english/community-database/segmentation/how-to-send-a-one-off-email-to-a-segment) to learn how to send a one-time email to segments.
2. To compose the body of your email, you can either select a template from the drop-down menu under *Template* or click *New Email* to create a completely new message. Click [here](https://wiki.beabee.io/help-center-english/community-database/segmentation/how-to-create-email-templates) to learn how to create email templates.
3. To make sure you can reuse this email in the future, give it a title under *Template*. You'll be able to find the email later under this name in the *Manage email templates* overview. There, you can also view the status of your email at any time and adjust it as needed.
4. If you select *New email*, you can set the subject and body text of your email.

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2FT4yf1Lg2wxre1h3R19iS%2F36C45517-2A4C-4ECF-B64F-8FFE06D2D659_1_201_a.jpeg?alt=media&#x26;token=8f1ad65f-57af-4ffd-82b9-bb49c674fcbb" alt=""><figcaption></figcaption></figure>

1. You can also choose whether to send the email from your default address or use a different email address. Click [here](https://wiki.beabee.io/help-center-english/onboarding-guide/customise-beabee/organisational-settings/standard-emails) to learn how to set your default email address. To use a different address, toggle the switch next to *Use custom sender* and then enter the desired email address and sender name in the fields that appear.

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2Fg9tzFPDuOin7knvFZDvZ%2FAD0C3F7A-A0D9-4985-8082-5C88BDFB64E4_4_5005_c.jpeg?alt=media&#x26;token=423e39bb-6abb-4190-a7b1-efb9599aab25" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Be sure to use a valid email address as the sender. This is the only way to ensure that recipients can reply to you.
{% endhint %}

9. In the *Preview* field, you can see how your email will appear to your contacts. Clicking the arrow below the *Preview Contact* field will show you a preview of the email for each contact in the segment. If you are using merge tags, you can check that they are working here.

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2FVB2plPG0Wda3HOZQo0BB%2F120B0780-3D97-4754-BF78-808CE3040937_1_201_a.jpeg?alt=media&#x26;token=eb8131e1-9b92-409c-a031-a94783ddeb40" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Merge tags are placeholders that are automatically replaced with your contacts' personal information. This could include their name, membership number, or other individual details. They allow you to design emails so that each message appears to be written specifically for the recipient—without having to customize every email individually. You can add them by clicking the small tag icon above your email.

![](https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2FdFPcYWN5c6iL7ifoVjeq%2Fgrafik.png?alt=media\&token=f6f8b07f-5bd1-449e-b759-a602e0e1252d)
{% endhint %}

10. Next, you can choose when your email should be triggered. Here, you can choose between two options:\
    Option 1: When a contact joins the segment.\
    Option 2: When a contact leaves the segment.\
    \
    If you choose Option 1, you can also select to have your newly created email sent once to all contacts who are currently in your segment. To do this, simply click the toggle next to the *Send immediately to existing contacts* field.

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2F0LAQNdVzy2RjONUWQPV1%2FE91E19BB-8BC0-428C-9E12-573639283933_4_5005_c.jpeg?alt=media&#x26;token=91658b66-d82d-4495-9663-b15c30fe91d1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Automated emails are sent once per day, usually late at night or early in the morning. All contacts who have entered or exited the segment in that day will receive the automated email.
{% endhint %}

11. Done! To finish, click the *Send* button

{% hint style="info" %}
You can now find your email by clicking the email icon in the segment and selecting *Manage Email Templates*. There, you can edit or reuse it at any time.
{% endhint %}

{% columns %}
{% column %}

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2Fckh9kYAucHTPrfWN3N4U%2FE1ABFDE7-D2E1-48F3-A535-AF7E6FAB26B5_1_201_a.jpeg?alt=media&#x26;token=a7fdbe59-4b4a-413a-8983-b68ff121b1bf" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="https://143769033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fh4pciFR0eX2BaFmGVhJl%2Fuploads%2F1QiFrhcFLIhYhekvfBGp%2FC836CDDB-794E-450D-B475-C08EAC85E12B.avif?alt=media&#x26;token=ec9114ed-cc5b-4042-8fc4-dfe3d606e0a5" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}
