sendgrid

No module named 'sendgrid_backend' in django

会有一股神秘感。 提交于 2020-07-21 11:28:09
问题 When sending an email on heroku I get this error: No module named 'sendgrid_backend' I have this set up in settings.py: EMAIL_BACKEND = "sendgrid_backend.SendgridBackend" SENDGRID_API_KEY = os.environ.get("SENDGRID_API_KEY") EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_API_KEY') I also did install of sendgrid using pip and included it in the requirements.txt 回答1: I think this will help you

No module named 'sendgrid_backend' in django

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-21 11:28:08
问题 When sending an email on heroku I get this error: No module named 'sendgrid_backend' I have this set up in settings.py: EMAIL_BACKEND = "sendgrid_backend.SendgridBackend" SENDGRID_API_KEY = os.environ.get("SENDGRID_API_KEY") EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'apikey' EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_API_KEY') I also did install of sendgrid using pip and included it in the requirements.txt 回答1: I think this will help you

Send email with Sendgrid in Django

删除回忆录丶 提交于 2020-06-24 14:16:46
问题 I'm trying to send emails from a Django app using Sendgrid. I've tried many configurations, but I still doesn't get any email on my Gmail account. You can see my configurations bellow: settings.py: SEND_GRID_API_KEY = 'APIGENERATEDONSENDGRID' EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'mySENDGRIDusername' EMAIL_HOST_PASSWORD = 'myEMAILpassword' #sendgrid email EMAIL_PORT = 587 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = 'MYEMAIL' #sendgrig email views.py from django.shortcuts import

Sending SMTP email with Django and Sendgrid on Heroku

£可爱£侵袭症+ 提交于 2020-06-16 18:13:40
问题 I'm trying to send email using SMTP and sendgrid for a Django app. I'm able to send emails on my local server, but on my heroku app I get an "SMTPServerDisconnected" error saying "connection unexpectedly closed. Is there a way to send SMTP email with sendgrid once deployed to Heroku? I can't seem to find any documentation on this. Here are my settings for email in settings.py: EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = 'EMAIL_HOST_USER' EMAIL_HOST_PASSWORD = 'EMAIL_HOST_PASSWORD'

SendGrid Link Branding gives ssl issue

天大地大妈咪最大 提交于 2020-05-29 07:31:46
问题 Unfortunately, nobody is responding to my support ticket so I think it's a problem needs someone with experience with sendgrid the reproduction is simple: did the Domain Authentication and Link Branding Added all the necessary record to my DNS configs All verified in SendGrid dashboard. Tried sending an email and click on the link it gives me this 回答1: Give API Key its full access, follow steps: Settings API Keys Edit API Key Full Access Update Whitelist your domain, follow steps: Settings

Ruby on Rails: bad username / password? (535 Auth failed)

不打扰是莪最后的温柔 提交于 2020-05-29 03:53:10
问题 I just finished my ruby foundations coursework at Bloc and I'm starting to bury my head into rails development. Things were going smooth until I hit this snag with devise and confirmation emails. I tried googling and looking around at some other questions but couldn't really find any that gave me anything that I could pull from and apply to my situation. I'm receiving the following error when signing up for an account. Net::SMTPAuthenticationError in Devise::RegistrationsController#create 535

Sendgrid change href of link

你。 提交于 2020-05-25 11:34:00
问题 I am using Nodejs with Express and I am sending an email through Sendgrid, but Sendgrid is changing the href link var emailText = '<!DOCTYPE html><html><head><meta charset="UTF-8"></head><body><a href="https://www.google.com">Here</a></body></html>' var from_email = new helper.Email('contact@test.com'); var to_email = new helper.Email('contact@test2.com'); var subject = 'Test'; var content = new helper.Content("text/html", emailText) var mail = new helper.Mail(from_email, subject, to_email,

Rails 5.2 Net::SMTPAuthenticationError - 535 Authentication failed: account disabled When Sending Email (Localhost and Heroku)

痴心易碎 提交于 2020-05-15 03:49:06
问题 I'm trying to get a Rails 5.2 mailer working, but am coming across a Net::SMTPAuthenticationError - 535 Authentication failed: account disabled error on both localhost and my Heroku production environment. The mailer looks like this: class AdminNotificationsMailer < ApplicationMailer default from: "liz@linchpinindustries.com" def new_rfp(rfp) @rfp = rfp mail( :to => "liz@linchpinindustries.com", :subject => 'New RFP Alert!' ) end def new_contact_us(contact) @contact = contact mail( to: "liz

SendGrid SMTP integration with contact form

随声附和 提交于 2020-05-12 07:08:45
问题 I want to use SendGrid SMTP services to send emails from my website's contact form. The submit button on the form just spits out a blank version of my website, with no emails sent to my inbox. Here's the PHP code: <?php require("class.phpmailer.php"); $mail = new PHPMailer(); // SMTP & Sendgrid settings $mail->IsSMTP(); $mail->Host = "smtp.sendgrid.net"; $mail->Port = "465"; $mail->SMTPAuth = "true"; // Enable SMTP authentication $mail->Username = "sendgrid username"; $mail->Password =

Dot missing(on domain name) of password reset email link send by SendGrid

≯℡__Kan透↙ 提交于 2020-04-18 05:29:05
问题 I am using SendGrid mailer on Ruby and Rails framework. In password reset email template we are sending a password reset link which looks like the following format (https://subdomain.domainname.com/password_reset/token/?some_other_params). Most of the time the password reset link is emailed to recipient in correct format but for some customer it is not sending the proper link. The issue we noticed is "the dot is missing between (subdomain and domainname) or (domainname and com) randomly and