I'm trying to setup an app using flask framework in python. I've been successful at setting it up with my personal email. I want to send it from my custom domain which is setup with Zoho. It's not allowing me to authenticate from the app. I have used the code below which I took from :
I know there is a way to allow apps to email in google. Is there a way to do that using zoho. I did create an app password, but that didn't fix it either. Is there anyway to allow an app to send an email using my zoho credentials.
app.config['MAIL_SERVER'] = 'smtp.zoho.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USE_SSL'] = True
app.config['MAIL_USERNAME'] = '_______@xxxxxx'
app.config['MAIL_PASSWORD'] = 'XXXXXXXXXXXX'
app.config['MAIL_SERVER'] = 'smtp.zoho.com'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USERNAME'] = '______@xxxxxx'
app.config['MAIL_PASSWORD'] = 'XXXXXXXXXXX'