Mailgun Configuration (Optional)
To use Mailgun with ShipFast, you'll need to set up Mailgun in your environment. Mailgun will be used for sending important emails such as user registration, member invites, and when a user's subscription plan is changed. Follow these steps to configure Mailgun:
Steps to set up Mailgun
1. Obtain Your Mailgun API Key
- Go to the Mailgun website (opens in a new tab) and log in to your account.
- In the Mailgun dashboard, select the domain you want to use or create a new domain if necessary.
- Navigate to the "API Keys" section in the dashboard.
- Locate your API key under "Mailgun API keys" or click "Add new key" to generate a new one.
- Copy the API key for use in your environment configuration.
Note: If you're using Mailgun in test mode, ensure that the recipient's email address is added to the authorized list in Mailgun. Emails will only be sent to addresses on this list when in test mode.
2. Add Mailgun to Your Environment
-
Create a
.env
File (if you don't already have one). -
Add the following variables to your
.env
file:# Mailgun Configurations MAILGUN_API_KEY=<your_mailgun_api_key> MAILGUN_DOMAIN=<your_mailgun_domain> SUPPORT_EMAIL=<your_support_email>
3. Replace Placeholder Values
- Replace the placeholder values (e.g.,
<your_mailgun_api_key>
,<your_mailgun_domain>
,<your_support_email>
) with the actual credentials from your Mailgun account.
Once you've completed these steps, Mailgun will be configured for use with your SaaS application.