nicnilov
12/9/2017 - 5:40 PM

Mailgun console test

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)