Answers.Body: <p>If anyone finds this post and is experiencing problems with the Sparkpost extension by PESC (not CiviDesk) this link may help: 
  <a href="https://civicrm.stackexchange.com/questions/24657/event-registration-fatal-error-since-v5-0-1">Event registration fatal error since v5.0.1</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-15T17:37:15.273Z
Answers.LastActivityDate: 2018-05-15T17:37:15.273Z
Answers.UserDisplayName: Davy Ivins
Answers.Body: <p>This appears to be a rather old bug. I opened an <a href="https://lab.civicrm.org/dev/core/issues/801" rel="nofollow noreferrer">issue here</a> and also a <a href="https://github.com/civicrm/civicrm-core/pull/13821" rel="nofollow noreferrer">pull request</a>.</p>
  
  <p>The fix will be shipped with CiviCRM 5.12. Meanwhile, it's a 1 line patch that can be applied on top of CiviCRM 5.11.</p>
  
  <p>The bug was specific to sending Thank You letters by email with the email address of the contact (even if it's an allowed domain, it was not specific to Sparkpost).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-14T17:23:02.330Z
Answers.LastActivityDate: 2019-03-17T15:03:17.293Z
Answers.LastEditDate: 2019-03-17T15:03:17.293Z
Answers.UserDisplayName: bgm
Answers.Body: <p>Spark post has limitation of checking from address belong to domain registered in sparpost i.e DKIM.</p>
  
  <p>DKIM allows receiving email services to verify that message content was created by an agent authorized by the domain owner and that it has not been altered in transit.</p>
  
  <p>The thank you letter form by default uses from address of logged in user to send email.</p>
  
  <p>Solutions:
  1. Submit a core patch to add from address on Thank Letter form.
  2. or Update your primary email address with @domain.address.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-16T16:46:00.613Z
Answers.Text: The email address being used IS from the organization's domain registered with SparkPost.
Answers.UserDisplayName: Michelle Rojas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-16T17:19:11.600Z
Answers.Text: But thank you letter doesn't allow you to use from address. What is the primary email address of logged in user?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-17T18:24:47.013Z
Answers.Text: I have been testing by trying to send Thank You letters to my colleagues who have donated to our own organization.  My primary address IS my work address (bettereating.org), which is the website domain.  So when I try to create the Thank You letters, I choose 'Send emails when possible', and that's the point of failure.  I have admin credentials in Civi and in the WordPress installation.
Answers.UserDisplayName: Michelle Rojas
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-12T07:40:47.810Z
Answers.LastActivityDate: 2018-01-12T07:40:47.810Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>CiviCRM 4.7.22</p>
  
  <p>I am trying to send CiviContribute thank you letters by email using this workflow:</p>
  
  <p>Find Contributions > Actions > Thank-you letters - print or email</p>
  
  <p>Invariably, I get the following error:</p>
  
  <blockquote>
    <p>An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.
    The mail library returned the following error message:
    The SparkPost service is unavailable due to a sending error, and the backup mailer is not enabled or not configured.
    This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » System Settings » Outbound Email), OR the FROM email address specifically configured for your contribution page or event. Possible causes are:
    Your Sendmail path is incorrect.
    Your Sendmail argument is incorrect.
    The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.</p>
  </blockquote>
  
  <p>I am using CiviDesk SparkPost for my emails.  I am able to successfully send transactional and CiviMail emails.  My email address works just fine for these, and it is configured in the FROM email addresses.  I am a site administrator, so full permissions.</p>
  
  <p>Any clues?  Thanks for helping me troubleshoot.</p>
  
  <p><strong>Update</strong>: I tested again using this workflow:</p>
  
  <p>Find Contributions > Actions > Email - send now</p>
  
  <p>And the Thank You emails went out without incident.</p>
  
  <p>So it seems to me that my email setup is perfectly fine.  This must be an issue with CiviContribute and the Thank You Letter workflow.</p>
  
Tags: <civicontribute><sparkpost>
Title: CiviContribute Thank You Letter not emailed - using CiviDesk SparkPost
ThreadText: # CiviContribute Thank You Letter not emailed - using CiviDesk SparkPost
  
  (Asked by: username_0 on 2017-12-13)
  
  CiviCRM 4.7.22
  
  I am trying to send CiviContribute thank you letters by email using this workflow:
  
  Find Contributions > Actions > Thank-you letters - print or email
  
  Invariably, I get the following error:
  
  > An error occurred when CiviCRM attempted to send an email (via SMTP). If you received this error after submitting on online contribution or event registration - the transaction was completed, but we were unable to send the email receipt.
  > The mail library returned the following error message:
  > The SparkPost service is unavailable due to a sending error, and the backup mailer is not enabled or not configured.
  > This is probably related to a problem in your Outbound Email Settings (Administer CiviCRM » System Settings » Outbound Email), OR the FROM email address specifically configured for your contribution page or event. Possible causes are:
  > Your Sendmail path is incorrect.
  > Your Sendmail argument is incorrect.
  > The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.
  
  I am using CiviDesk SparkPost for my emails. I am able to successfully send transactional and CiviMail emails. My email address works just fine for these, and it is configured in the FROM email addresses. I am a site administrator, so full permissions.
  
  Any clues? Thanks for helping me troubleshoot.
  
  **Update**: I tested again using this workflow:
  
  Find Contributions > Actions > Email - send now
  
  And the Thank You emails went out without incident.
  
  So it seems to me that my email setup is perfectly fine. This must be an issue with CiviContribute and the Thank You Letter workflow.
  
  **Tags:** civicontribute, sparkpost
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2018-05-15. Score: 1
  
  If anyone finds this post and is experiencing problems with the Sparkpost extension by PESC (not CiviDesk) this link may help:
  [Event registration fatal error since v5.0.1](https://civicrm.stackexchange.com/questions/24657/event-registration-fatal-error-since-v5-0-1)
  
  
  ---
  
  ### Answer by username_2 on 2019-03-14. Score: 1
  
  This appears to be a rather old bug. I opened an [issue here](https://lab.civicrm.org/dev/core/issues/801) and also a [pull request](https://github.com/civicrm/civicrm-core/pull/13821).
  
  The fix will be shipped with CiviCRM 5.12. Meanwhile, it's a 1 line patch that can be applied on top of CiviCRM 5.11.
  
  The bug was specific to sending Thank You letters by email with the email address of the contact (even if it's an allowed domain, it was not specific to Sparkpost).
  
  
  ---
  
  ### Answer by username_3 on 2018-01-12. Score: 0
  
  Spark post has limitation of checking from address belong to domain registered in sparpost i.e DKIM.
  
  DKIM allows receiving email services to verify that message content was created by an agent authorized by the domain owner and that it has not been altered in transit.
  
  The thank you letter form by default uses from address of logged in user to send email.
  
  Solutions:
  1. Submit a core patch to add from address on Thank Letter form.
  2. or Update your primary email address with @domain.address.
  
  HTH
  
  username_3
  
  > **Comments:**
  > **username_0**: The email address being used IS from the organization's domain registered with SparkPost.  
  > **username_3**: But thank you letter doesn't allow you to use from address. What is the primary email address of logged in user?  
  > **username_0**: I have been testing by trying to send Thank You letters to my colleagues who have donated to our own organization.  My primary address IS my work address (bettereating.org), which is the website domain.  So when I try to create the Thank You letters, I choose 'Send emails when possible', and that's the point of failure.  I have admin credentials in Civi and in the WordPress installation.  
  
  ---
  
  