Skip to content

Instantly share code, notes, and snippets.

@nicnilov
Created December 9, 2017 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicnilov/62e6c6028bd852c53d511467fc842ed4 to your computer and use it in GitHub Desktop.
Save nicnilov/62e6c6028bd852c53d511467fc842ed4 to your computer and use it in GitHub Desktop.
Mailgun console test
mg_client = Mailgun::Client.new('api-key')
message_params = {
from: 'alice@example.com',
to: 'bob@example.com',
subject: 'The Ruby SDK is awesome!',
text: 'It is really easy to send a message!'
}
mg_client.send_message('mg.registered.domain', message_params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment