Setting up Mailgun in a DO server which is running as a sub domain

February 24, 2019 530 views
Email Ubuntu 16.04

Hi there
I have a website with its main domain hosted with another provider.
We are developing the web application which is to be hosted in a DO server. This DO server will be running under a sub domain.
WE want to send email from this server using mail gun
How this can be accomplished?

Thank you

1 Answer

Hey friend,

The answer to this will be very relative. Mailgun is going to give you connection information. You can either develop your application to use that connection information from scratch, or you can look for existing libraries that assist with SMTP authentication for the language you have chosen to code in. Most likely some type of library already exists. Here is an example of one for Python:


Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!