# Init mailgun API
Mailgun.init("api-key-secret")

# Sending a simple text-only message:
MailgunMessage.send_txt("me@myhost",
    "you@yourhost, him@hishost",
    "Hello!",
    "Sending message through HTTP!")
Mailgun::init("my-api-key")

# Sending a simple text message:
MailgunMessage::send_text("me@myhost",
    "you@yourhost, him@hishost",
    "Hello!",
    "Sending message through HTTP!")
// Init mailgun API
mailgun_init("my-api-key");

// Sending a simple text message:
MailgunMessage::send_text("me@myhost",
    "you@yourhost, him@hishost",
    "Hello!",
    "Sending message through HTTP!");
// Init mailgun API
Mailgun.init("my-api-key");

// Sending a simple text message:
MailgunMessage.sendText("me@myhost",
    "you@yourhost, him@hishost",
    "Hello!",
    "Sending message through HTTP!");
mailgun provides virtual email servers in the cloud.
Send, receive or forward emails programmatically in a fraction of the time that it would take to stand up, configure, and manage your own email server.

go mobile

Give your users mobile access to your web app through email. Emails can trigger functions in your code. Allowing users to interact with your app via email extends your reach with minimal effort.

ensure deliverability

Mailgun signs your emails with DKIM and DomainKeys, provides SPF and handles bounces. Mailgun is SenderID compliant and respects ISP sending limits. The result is an increased deliverability rate.

be sticky

Mailgun gives you the tools to add unlimited inboxes to your app. Users can communicate with each other within your app or from their email client. Either way, your app becomes more sticky.