2

So, I'm using the com.pesc.sparkpost CiviCRM/Sparkpost integration extension. It is working really well so far for just about everything except for the welcome email for mailing list group subscriptions. I've tried through a drupal webform and through a Civi profile (using checkmark boxes for public subscriber groups). In both cases, the double-opt-in email gets sent properly, and the link in the double-opt-in email works properly. Upon clicking the link I am sent to a confirmation page with an error message (bellow), but the welcome email is never sent, and the transactional email is shown as pending on the user's profile in Civi.

So, Transactional emails and Mass mail are definitely being sent fine through Sparkpost, and the subscription mechanism is working as intended. So I'm pretty sure that my sparkpost smtp settings are working as intended, contrary to the error message. So far it seems to be just these welcome emails that aren't sending properly.


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: Failed to send data [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 550, response: 5.7.1 Unconfigured Sending Domain )]

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 SMTP Username or Password are incorrect.
  • Your SMTP Server (machine) name is incorrect.
  • You need to use a Port other than the default port 25 in your environment.
  • Your SMTP server is just not responding right now (it is down for some reason).
  • The FROM Email Address configured for this feature may not be a valid sender based on your email service provider rules.

(i) Name ([email protected]) has been successfully subscribed to the mailing list.

3
  • Just to be clear, I've also tested with CiviMail. contribution and membership receipts, and event registration receipts. All appear to be sending correctly. Commented Oct 2, 2017 at 16:51
  • This may help : civicrm.stackexchange.com/questions/24657/…
    – Davy Ivins
    Commented May 15, 2018 at 17:38
  • Thanks, I'll take a look. It's a bit of a mess now - I tried the cividesk extension and had the same problem, then tried switching back to PESK, which is now unable to activate the extension at all in civi 4.6 (white screen). I'm scheduling an update to latest civi 5 before trying again. Commented May 17, 2018 at 12:06

1 Answer 1

-1

Put

define('CIVICRM_MAIL_LOG', '/whereever/you/want/the/log');

in civicrm.settings.php and this will log what it's trying to send. If the from address appears incorrect then whatever it is appearing as might lead you to the problem.

2
  • 1
    Make sure that that the user apache (or equivalent) is running as has permissions to write to that file -> so /files is usually a good place for 'whereever' Commented Oct 4, 2017 at 14:16
  • Thanks, I'll give this a try and report back. As part of troubleshooting I've removed all potential email addresses from before we used the extension so that only the correct default sending address remains, and I've even given the default organization the correct sending address, but the error remains. Hopefully this will lead me in the right direction... Commented Oct 4, 2017 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.