How to get started
Sending Mails
This server action takes your API Key and your domain as input parameters. For sending EMails a send only API key is sufficent.
Request Property
If the From address does not correspond to your configured email domain in mailgun then mail clients may display the sender as on behalf of. You can set the SetSenderHeader option to true. In that case the component also sets a special message header (h:sender) corresponding to your from address. This mostly works and your address is display correctly at the recipient. BUT! There is a great chance that the receiving email server either rejects your mail or flags it as junk.
Webhooks
You can configure Webhooks for various events in the Mailgun console. The component itself does not provide a REST endpoint to consume Mailgun events.
After successful validation of the webhook the request then passes on to your hook endpoint.