# Create a Campaign Message with Mailgun

* Log in to your CrossEngage account.
* Go to `Campaigns` and click `Create new campaign` in the top right corner of the page.

<figure><img src="/files/yEh1715nKo4tR0vFZuhQ" alt=""><figcaption></figcaption></figure>

* Choose whether you want to create an Audience or a Realtime campaign. Information about the distinction between these types of campaigns found [here](/data-and-engagement-platform/campaign-management/campaigns.md).
* Once you have created your campaign and filled in the “Campaign setup” and “Target group” sections, go to the `Messages` section and click `Create new message`.
* Select `Email` from the dropdown menu. The message setup screen will open.

<figure><img src="/files/Mfsib0Qtu3exQAhAtiZl" alt=""><figcaption></figcaption></figure>

* Under the “Send via integration” heading, select the Mailgun integration that you set up earlier.

<figure><img src="/files/BkFJuWFotYe0ig1F3ppc" alt=""><figcaption></figcaption></figure>

* Fill in the Sender Information:
  * “Sender email address” - the address from which the email will be sent;
  * “Reply-to email address” - the address where replies will be sent to;
  * “Sender name” - the name of the message sender.
* Create a message template, for which [Handlebars ](/data-and-engagement-platform/messages/personalization.md)may be useful.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.crossengage.io/data-and-engagement-platform/messages/integrations/channels/email/mailgun/create-a-campaign-message-with-mailgun.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
