You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
For a simple module:
And response is:
Domain and key are correct and works on cURL,. Any ideas?
The text was updated successfully, but these errors were encountered: