mailgun icon indicating copy to clipboard operation
mailgun copied to clipboard

:error, 404

Open ourway opened this issue 7 years ago • 0 comments

For a simple module:

defmodule Ticketing.Mailer do
    @config     domain: Application.get_env(:ticketing, :mailgun_domain),
                key: Application.get_env(:ticketing, :mailgun_key)
                #mode: :test,
                #test_file_path: "/tmp/mailgun.json"

    use Mailgun.Client, @config


    @from "[email protected]"

    def send_welcome_text_email(to) do
        send_email to: to,
               from: @from,
               subject: "hello!",
               text: "Welcome!"
    end


end

And response is:

{:error, 404,
 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n<title>404 Not Found</title>\n<h1>Not Found</h1>\n<p>The requested URL was not found on the server.</p><p>If you entered the URL manually please check your spelling and try again.</p>\n"}

Domain and key are correct and works on cURL,. Any ideas?

ourway avatar Aug 01 '16 22:08 ourway