I've just tested my code on localhost and it's working perfectly. But I try the same thing on the website hosted here and it does not work. Same exact code. I'm using the Gmail SMTP servers. Is it blocked or something?
try:
mail.send(msg)
flash("Your message has been received. We aim to reply back within a few hours","success")
except:
flash("An error occured. Try again", "error")
I'm getting the error message displayed which means that the message is not being sent for some reason