SMTP Protocol Introduction
In addition to the HTTP API, Mailgun servers also support the standard SMTP protocol. You can send email using SMTP with or without TLS.
You will need to refer to the standard library documentation for the language of your choice to learn how to you the SMTP protocol. Below are some links for a few popular languages: