Mailgun magnificient API

I am working on the Mailgun assignment and have successfully run the code and getting the results but during execution of code it gets sensor value and print making request to mailgun to send email and it prints response that MAILGUN MAGNIFICIENT API and iam not recieving any email event though i have removed json code

can you share the code part and mailgun api part

yeah for sure thank you for your response.

In the send_email function, please check the name of the variable sensor_value. Check if that solves your problem.


This error generally occurs in case of invalid sender domains.

Can you please check the sender email that you must have added to the config file?

Hey there,
Please check your sandboxURL
in file.
In the Mailgun website, in the overview tab the sandbox URL ends with ‘?’ but in code, we don’t need ‘?’ in the end of the URL link. This may be the reason you are getting an error while executing the code.
Please let me know if you find it helpful.