Requirements

  • Knowledge of MailGun

RestComm email verb uses SMTP protocol to send emails. Mailgun supports SMTP, using the server “smtp.mailgun.com” (google: smtp.gmail.com, hotmail:smtp.live.com). To use mailgun as an email service follow the steps below:

Create an account in MailGun

createMailGunacc

Add a custom domain

Associate an account with an external email server -  e.g. gmail.

addMGDomain

Verify the custom domain

verifyEmailMG

Manage SMTP credentials

To manage SMTP credentials, go to Domains section in Mailgun Dashboard. Click on the New SMTP Credential to add new credential

smtp credentials MG

The configured credentials will be used in RestcComm configuration to send email.

RestComm Email Configuration

The email configuration for RestComm, needs to be set at the Restcomm.xml file (standalone/deployments/restcomm.war/WEB-INF/conf). 

Email configuration example:

<smtp-service>

               <host>smtp.mailgun.com</host>

               <user>Login Set at the SMTP Credentials step</user>

               <password>Password set at SMTP Credentials step</password>

</smtp-service>
  • Port number can be set using the port tag. If not set default SMTP port (25) is used. E.g. <port>3025</port>