Created
December 9, 2017 17:40
-
-
Save nicnilov/62e6c6028bd852c53d511467fc842ed4 to your computer and use it in GitHub Desktop.
Mailgun console test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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