> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Sample Flows

## Article: Sample Flows

## Article Link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-details/sample-flows.md

## Article Content:

# Sender Details: Sample Flows

This article presents a possible use case and corresponding sample flow that you can support. It provides a useful starting point as you plan your implementation.

## Publish an email campaign from a new sender

This use case demonstrates how to send an email campaign from a new sender. For example, if a business now accepts bookings and wants to start a new email campaign, they may want to send it from a different sender, such as `Yoga Bookings: [bookings@yogawithpuppies.com]`.

Currently, there's a limitation when publishing an email campaign with the [Campaign API](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-marketing/campaign/publish-campaign.md). The API automatically publishes campaigns only from the default sender. For this use case to work, the new sender needs to be set as the default.

> **Prerequisite:** The site must already have an [email campaign](https://support.wix.com/en/article/email-marketing-creating-and-sending-a-campaign-from-start-to-finish) to send.

To publish a campaign from a new sender:

1. Create and verify the new email address using the [Sender Emails API](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-emails/introduction.md).
1. Call [Create Sender Details](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-details/create-sender-details.md) passing the verified email address into the `fromEmailAddress` field. Also, enter the sender's name into the `fromName` field. The name can't contain an email address other than `fromEmailAddress`. Save the value of the `id` field for later use.
1. Call [Mark Sender Details as Default](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/sender-details/mark-sender-details-as-default.md) and pass the saved ID.
1. Call [Publish Campaign](https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-marketing/campaign/publish-campaign.md) to send out the campaign. The campaign will automatically use the new sender details.