why??
please spot the error
‘eamil’ instead of ‘email’
ohhh
@63spsingh check your limiting values,if those are crossed then wait for sometime.It will surely work provided your code is correct.
but how much time? i am waiting for 20 minutes
@63spsingh Are you sending the email to some other email ID other than the one you have used to sign up for mailgun? If yes, then those emails will not be sent as Mailgun prohibits trial accounts to send to other email IDs.
You can also print the response sent by Mailgun by adding the line print(res)
after res = mailer.send_email(....)
@63spsingh A 401 response means that your request was unauthenticated. Mostly, you have made a mistake in the config for Mailgun. Please check the config and try again.