I am trying to send mails using RestClient and mailgun.
I installed gem in my rails app and defined "require 'rest_client'" in config/application.rb.
Then to send mail, I wrote this in my message controller:
RestClient.post "https://api:key-3ax6xnjp29jd6fds4gc373sgvjxteol0" "@api.mailgun.net/v2/samples.mailgun.org/messages", :from => "Excited User <me@samples.mailgun.org>", :to => "sergeyo@profista.com, serobnic@mail.ru", :subject => "Hello", :text => "Testing some Mailgun awesomness!"
I have created account with mailgun and used keys and url above as mentioned in my account.
When I run code, it gives error:
RestClient::ResourceNotFound (404 Resource Not Found):
Can anybody help me whats going wrong here?