Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:error, 404 #47

Open
ourway opened this issue Aug 1, 2016 · 0 comments
Open

:error, 404 #47

ourway opened this issue Aug 1, 2016 · 0 comments

Comments

@ourway
Copy link

ourway commented Aug 1, 2016

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 "info@appido.ir"

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant