Answers.Body: <p>If it's a mail-header issue, it might be about adding the Message-ID header, which you can configure at the &quot;CiviMail Component Settings&quot;</p>
  <p>/civicrm/admin/setting/preferences/mailing?reset=1</p>
  <p>That checkbox is off by default but should probably be on at this point. The box is labelled &quot;Enable CiviMail to generate Message-ID header&quot;.</p>
  <p><a href="https://civicrm.stackexchange.com/questions/42279/does-gmail-google-now-demand-a-messageid">Does gmail/google now demand a messageId?</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-10T13:30:40.880Z
Answers.LastActivityDate: 2022-08-10T13:30:40.880Z
Answers.UserDisplayName: Alan Dixon
Answers.Body: <p>I was a dummy and installed <a href="https://lab.civicrm.org/extensions/sendgrid" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/sendgrid</a> and it works. I am also considering switching to SparkPost (assuming I can get it to work) or AWS.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-08-09T22:07:16.357Z
Answers.LastActivityDate: 2022-08-09T22:07:16.357Z
Answers.UserDisplayName: Zachary
Body: <p>I've had to switch away from CiviSMTP as they've gone under and I'm trying to set up an alternative. SparkPost failed as reported by others as well. I'm now trying to get SendGrid to work. I'm using it in conjunction with the Airmail Extension.</p>
  <p>On the SMTP setup page (/civicrm/admin/setting/smtp?reset=1) test emails work fine. But neither CiviMail nor sending email via contact action are working.</p>
  <p>With CiviMail it completes the mailing and reports 0 deliveries. All the recipients bounce with &quot;syntax&quot; error.</p>
  <p>At SendGrid I've set up the webhook and tested it and it passes the test.</p>
  <p>Any ideas.</p>
  <p>I'm having a vague recollection that I need to allow email headers somewhere but I can't find the setting (if that is even the issue). My client needs to send out a 13K email soon so any help would be much appreciated.</p>
  <p>I'm using:</p>
  <ul>
  <li>CiviCRM 5.51.2</li>
  <li>Airmail 2.1</li>
  <li>Drupal 7.91</li>
  <li>php 7.4.3</li>
  <li>Mysql 8.0.30-0ubuntu0.20.04.2</li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-05T20:26:34.310Z
Comments.Text: Just flagging we had no issue switching to SparkPost - so not sure why it is causing others grief.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-09T17:39:23.587Z
Comments.Text: Not addressing your question directly, but I left SendGrid's shared service due to delivery problems years ago. Switched to AWS and so much better, faster and cheaper. Using this extension: https://github.com/mecachisenros/civicrm-aws
Comments.UserDisplayName: TimETown
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-09T20:05:51.630Z
Comments.Text: i got 404 at that link
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-09T20:14:25.733Z
Comments.Text: @TimETown mis-typed the URL. Here is the correct one: https://github.com/mecachisenros/aws (the repo is called "aws" and NOT "civicrm-aws." I'll check it out and report back.
Comments.UserDisplayName: Shai
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-09T21:56:51.137Z
Comments.Text: @TimETown the AWS extension's form to input AWS id and secret is not allowing any data to be entered. Arghh. I wish I wasn't using the latest version of Civi.
Comments.UserDisplayName: Shai
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-10T21:17:19.617Z
Comments.Text: Sorry--the extension had the wrong link in the documentation that shows up within Civi. You can the AWS info in your civicrm.settings.php file. I can't recall everything I did, even thought I have set this up on 4 different sites! But I don't show user credentials filled. You need permission from AWS to send to other domains and can only send out from your own verified address. I let CiviCRM do tracking.
Comments.UserDisplayName: TimETown
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-10T21:28:52.273Z
Comments.Text: Setup can be hard work, but 10,000 emails costs $1 and they are very reliably delivered. Documentation at https://github.com/mecachisenros/aws for basic setup is good.
Comments.UserDisplayName: TimETown
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-11T15:14:00.500Z
Comments.Text: @Shai what problem do you have with SparkPost? its working great for us.
  
  They also have non-profit discounts.
Comments.UserDisplayName: themak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-11T18:42:40.123Z
Comments.Text: @themak I get one of those yellow full page error messages. The specific message is "Can't decrypt key" or something like that. This happens immediately upon enabling the extension.
Comments.UserDisplayName: Shai
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-12T20:57:27.090Z
Comments.Text: @shai I tagged you on gitlab with a solution here: https://lab.civicrm.org/extensions/sparkpost/-/issues/110#note_80315
Comments.UserDisplayName: themak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-22T21:44:41.380Z
Comments.Text: @themak Wow, thanks so much for this! I got all the way through your instructions until the last step which threw an error. I explain in the issue queue at Git lab: https://lab.civicrm.org/extensions/sparkpost/-/issues/109#note_80674
Comments.UserDisplayName: Shai
Tags: <civimail><smtp>
Title: CiviMail SendGrid with Airmail Extension
ThreadText: # CiviMail SendGrid with Airmail Extension
  
  (Asked by: username_0 on 2022-08-05)
  
  I've had to switch away from CiviSMTP as they've gone under and I'm trying to set up an alternative. SparkPost failed as reported by others as well. I'm now trying to get SendGrid to work. I'm using it in conjunction with the Airmail Extension.
  
  On the SMTP setup page (/civicrm/admin/setting/smtp?reset=1) test emails work fine. But neither CiviMail nor sending email via contact action are working.
  
  With CiviMail it completes the mailing and reports 0 deliveries. All the recipients bounce with "syntax" error.
  
  At SendGrid I've set up the webhook and tested it and it passes the test.
  
  Any ideas.
  
  I'm having a vague recollection that I need to allow email headers somewhere but I can't find the setting (if that is even the issue). My client needs to send out a 13K email soon so any help would be much appreciated.
  
  I'm using:
  
  * CiviCRM 5.51.2
  * Airmail 2.1
  * Drupal 7.91
  * php 7.4.3
  * Mysql 8.0.30-0ubuntu0.20.04.2
  
  **Tags:** civimail, smtp
  
  > **Comments:**
  > **username_1**: Just flagging we had no issue switching to SparkPost - so not sure why it is causing others grief.  
  > **username_2**: Not addressing your question directly, but I left SendGrid's shared service due to delivery problems years ago. Switched to AWS and so much better, faster and cheaper. Using this extension: https://github.com/mecachisenros/civicrm-aws  
  > **username_1**: i got 404 at that link  
  > **username_0**: @username_2 mis-typed the URL. Here is the correct one: https://github.com/mecachisenros/aws (the repo is called "aws" and NOT "civicrm-aws." I'll check it out and report back.  
  > **username_0**: @username_2 the AWS extension's form to input AWS id and secret is not allowing any data to be entered. Arghh. I wish I wasn't using the latest version of Civi.  
  > **username_2**: Sorry--the extension had the wrong link in the documentation that shows up within Civi. You can the AWS info in your civicrm.settings.php file. I can't recall everything I did, even thought I have set this up on 4 different sites! But I don't show user credentials filled. You need permission from AWS to send to other domains and can only send out from your own verified address. I let CiviCRM do tracking.  
  > **username_2**: Setup can be hard work, but 10,000 emails costs $1 and they are very reliably delivered. Documentation at https://github.com/mecachisenros/aws for basic setup is good.  
  > **username_3**: @username_0 what problem do you have with SparkPost? its working great for us.  They also have non-profit discounts.  
  > **username_0**: @username_3 I get one of those yellow full page error messages. The specific message is "Can't decrypt key" or something like that. This happens immediately upon enabling the extension.  
  > **username_3**: @shai I tagged you on gitlab with a solution here: https://lab.civicrm.org/extensions/sparkpost/-/issues/110#note_80315  
  > **username_0**: @username_3 Wow, thanks so much for this! I got all the way through your instructions until the last step which threw an error. I explain in the issue queue at Git lab: https://lab.civicrm.org/extensions/sparkpost/-/issues/109#note_80674  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2022-08-10. Score: 1
  
  If it's a mail-header issue, it might be about adding the Message-ID header, which you can configure at the "CiviMail Component Settings"
  
  /civicrm/admin/setting/preferences/mailing?reset=1
  
  That checkbox is off by default but should probably be on at this point. The box is labelled "Enable CiviMail to generate Message-ID header".
  
  [Does gmail/google now demand a messageId?](https://civicrm.stackexchange.com/questions/42279/does-gmail-google-now-demand-a-messageid)
  
  
  ---
  
  ### Answer by username_5 on 2022-08-09. Score: 0
  
  I was a dummy and installed <https://lab.civicrm.org/extensions/sendgrid> and it works. I am also considering switching to SparkPost (assuming I can get it to work) or AWS.
  
  
  ---
  
  