Sendgrid returns 202 but doesn't send email

前端 未结 6 937
暖寄归人
暖寄归人 2020-12-09 16:39

I\'m trying to get the basic \"hello world\" of sendgrid working, but have so far been unsuccessful. The response returns code 202, suggesting that it will send the email,

相关标签:
6条回答
  • 2020-12-09 16:58

    I also had this issue. I contacted sendgrid support however while waiting I changed the dummy data to real data I was calling sendgrid API with and then it started working.

    in particular I changed the from email address to show my own domain.

    0 讨论(0)
  • 2020-12-09 17:00

    I recently got the same issue. My e-mails were not sent without any reason, the response status was 202, e-mail activity was empty. The possible solution is to add a company details and add an unsubscribe block to e-mail. That worked for me.

    I'm implementing a password reset feature and it's a little weird to have an unsubscribe block for this. I'll try to figure out what was the real reason of such silent suppression. Probably it's because I tried to send a draft debug e-mail several times which was looked like a spam. Maybe SendGrid has some smart algorithms for detecting this.

    0 讨论(0)
  • 2020-12-09 17:05

    I just had this issue: I created an account with SendGrid and tried to get the basic example working, the API would return a 202 response, but the email was never sent, and the SendGrid web UI's activity feed showed no activity.

    I submitted a SendGrid support ticket and ~8 hours later received a response saying that they had disabled my account's ability to send emails:

    Hello,

    Thanks for contacting SendGrid Support!

    It looks like your account has been closed by our compliance team and this is the cause of the issue.

    To reactivate we’d like to know a little more about the email you’ll be sending through SendGrid. Please elaborate on the following:

    1. The nature of your business, the services you provide, and your potential customer base

    2. Your sending frequency and volume

    3. How you collect your recipient addresses (link to opt in page, or sign up process)

    4. How you will allow your recipients to opt out of your emails (whether you plan to use SendGrid’s one-click unsubscribe feature, or if you have your own method)

    5. The types of messages you will be sending (transactional or marketing)

    Please reply at your earliest convenience in order to continue the activation process. Thanks for your cooperation!


    ~15 hours after submitting my answers, I received a response saying my account had been "activated":

    Hi nathan.wailes,

    Thanks for the additional information! Your SendGrid account has been activated, and can now be used to send email. To get started, check out our Getting Started page.

    If you hit any snags while you're getting set up, you can find solutions to common problems and FAQS in our Knowledge Base.

    Let me know if you have any more questions!

    Best,

    Stevin O.

    Associate Support Engineer


    When I then ran the basic example code with my email address set up as the recipient, the email showed up immediately in my Gmail inbox.

    0 讨论(0)
  • 2020-12-09 17:09

    In case someone will come across this looking for an answer to a similar problem. I solved the same problem by confirming the domain with DNS records - after that everything worked like charm.

    In Sendgrind: Setting > Senders Authentication > Domain Authentication

    0 讨论(0)
  • 2020-12-09 17:10

    The same issue occurred when DNS is not verified and you are not using register email in from email. Just change from email to register email.

    0 讨论(0)
  • 2020-12-09 17:13

    Debug this by going to the sendgrid api log here: https://app.sendgrid.com/email_activity

    In my case, it was a DMARC receiving domain block.

    0 讨论(0)
提交回复
热议问题