Sending and receiving emails - restarone/violet_rails GitHub Wiki

Overview

Violet Rails includes out of the box support for sending and receiving email through Mailgun. Each subdomain name maps to an email address. Eg: help.example.com would have an email address [email protected]

Configuration

Add these 2 environment variables to (.rbenv-vars in production, .env.test or .env.development). The ingress signing key is used to validate that emails are coming from mailgun

MAILGUN_API_KEY=foo
MAILGUN_INGRESS_SIGNING_KEY=foo

configure mailgun to send emails to Violet Rails

https://api.rubyonrails.org/v6.0.3.4/classes/ActionMailbox/Ingresses/Mailgun/InboundEmailsController.html

DNS configuration (docs WIP)