SMS Gateway Admin Guide Help

Mail

The Mail Settings section of the SMS Gateway application allows you to configure email settings for notifications, alerts, and other communication.

📧 From Address

This section allows you to set the sender details for outgoing emails.

  • Name: The name displayed in the "From" field of emails.

    • Example: SMS Gateway

  • Email: The email address from which emails will be sent.

🛠️ Steps to Update:

  1. Enter the desired name in the Name field.

  2. Enter the email address in the Email field.

  3. Click the Save button to apply changes.

📤 Outgoing Email Configuration

This section configures the method and path for sending emails.

  • Message to Email: Allows users to forward received messages to their registered email. Users can only enable this if it is enabled here.

1. Sendmail Configuration

  • Mailer: Sendmail

  • Sendmail Path: The system path for the Sendmail binary.

    • Example: /usr/sbin/sendmail -bs -i

🛠️ Steps to Update:

  1. Select Sendmail from the Mailer dropdown.

  2. Enter the correct system path.

  3. Click Save to apply the changes.

  4. Click the Test button and enter an email address to verify the configuration.

2. SMTP Configuration

SMTP is a common protocol for sending emails via an external mail server.

  • Mailer: SMTP

  • Host: The SMTP server address.

    • Example: smtp.gmail.com

  • Port: The port number for SMTP.

    • Common values: 587 (TLS), 465 (SSL), or 2525 (for services like Mailtrap)

    • Example: 587

  • Username: The SMTP username (provided by the email service).

  • Password: The SMTP password.

    • Example: password

  • Encryption: The encryption method for secure communication.

    • Options: tls, ssl

    • Example: tls

Using Gmail SMTP

If you decide to use Gmail as your SMTP server, then you have to turn on two-factor authentication on your Gmail account as shown here and generate an App password to use it for SMTP. You can generate App password as shown here. You can use your email as the SMTP Username and App password you generated as your SMTP Password. Everything else should be the same as the example provided above.

3. Mailgun Configuration

Mailgun is a popular email delivery service, especially for transactional emails. You can get all the necessary configurations as shown here.

  • Mailer: Mailgun

  • Domain: The Mailgun domain associated with your account.

    • Example: yourdomain.com

  • Secret: The Mailgun API key.

  • Endpoint: The Mailgun API endpoint.

    • Example: api.mailgun.net

4. Amazon SES Configuration

Amazon Simple Email Service (SES) provides scalable and cost-effective email services.

  • Mailer: Amazon SES

  • Key: Your Amazon SES Access Key ID.

  • Secret: Your Amazon SES Secret Access Key.

  • Region: The AWS region in which SES is configured.

    • Example: us-east-1

⚠️ Important:

  • Make sure SES is verified for your domain.

  • Ensure the IAM user associated with the Key and Secret has the necessary SES permissions.

5. Postmark Configuration

Postmark is an email delivery service known for reliable transactional emails.

  • Mailer: Postmark

  • Token: The Postmark Server API token.

⚠️ Important:

  • Ensure your Postmark account is active and configured for the domain.

  • Only use the Server API Token, not the account-level token.

6. Resend Configuration

Resend is a modern email service that provides a simple, scalable email-sending experience.

  • Mailer: Resend

  • Key: The Resend API key.

🔑 Where to find the Resend API key?

  1. Log in to your Resend account.

  2. Navigate to API Keys in the dashboard.

  3. Generate a new key (if you don’t have one) and copy it.

  4. Paste it into the Key field in the SMS Gateway app.

⚠️ Troubleshooting Tips

  • Are Emails Not Sending?

    • Verify the mail server details are correct.

    • Check if the server is blocking outgoing SMTP connections.

    • Make sure authentication details are accurate.

  • Sendmail Path Errors?

    • Confirm the Sendmail Path is correct for your server.

    • Ensure the sendmail binary has the correct permissions.

  • SMTP Authentication Failed?

    • Double-check the Username and Password.

    • Ensure the correct Port and Encryption settings are selected.

  • Mailgun Issues?

    • Verify that the Domain matches the Mailgun account settings.

    • Make sure the Secret (API key) is valid.

    • Confirm the correct Endpoint based on the Mailgun region.

  • Amazon SES Issues?

    • Ensure the Key and Secret match your AWS IAM credentials.

    • Confirm that SES is enabled in the selected Region.

    • Check AWS SES sending quotas and verify the sender's email/domain.

  • Postmark Issues?

    • Confirm the Token is correct and matches the server configuration.

    • Make sure the domain is verified in Postmark.

    • Check your Postmark activity logs for delivery errors.

  • Resend Issues?

    • Verify the Key matches the one from your Resend dashboard.

    • Make sure Resend is enabled and not restricted by any firewall rules.

    • Check the Resend dashboard for error logs or deliverability issues.

🎯 Proper email configuration is essential for reliable communication.
🔐 Use strong, secure credentials to protect your email services.

📥 Incoming Email Configuration

This section allows you to configure incoming email settings to trigger actions based on received emails.

  • Email Address: The email address to which users should send emails to trigger actions.

  • Host: The email server address.

  • Port: The port number for the email server.

  • Protocol: The protocol used for email communication (e.g., IMAP, POP3).

  • Encryption: The encryption method for secure communication (e.g., TLS, SSL, No TLS, STARTTLS, None).

  • Username: The username for the email account.

  • Password: The password for the email account.

  • Email to Message: If enabled, users can also enable email-to-message.

🛠️ Testing Incoming Email Configuration:

  1. After entering the incoming email settings, click the Save button.

  2. Click the Test button, and it will check the connection to the email server using the provided settings. In case of any issues, it will display an error message to help you troubleshoot.

15 December 2025