Django, sendGrid not sending mail

I'm trying to send mail using SendGrid on django development server. Here are my setting:

EMAIL_HOST = 'smtp.sendgrid.net'
DEFAULT_FROM_EMAIL = 'myemail@gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_USE_SSL = False
EMAIL_HOST_USER = 'apikey'
EMAIL_HOST_PASSWORD = config('PASS')

and it is not working, it returns 1 on the terminal and nothing happens.

Back to Top