I am getting name ‘mailer’ not defined in the program for mailgun. Am I suppose to define it? can’t crack the error, kindly help. Thank You.
replace mailer.send_email by email.send_email because you have created object as named email otherwise you can replace email by mailer in line number 2