Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do AirMail events to the hook URL cause a contact email to be put on hold and/or disable bulk emails? #39

Open
norm-oyg opened this issue Dec 24, 2023 · 0 comments

Comments

@norm-oyg
Copy link

Sorry this is not a bug but a request for clarification.

I connected my CiviCRM Outbound email to Amazon SES with a Topic to SNS that has a subscriber set to the AirMail hook. Emails are going out and SNS is receiving bounce events. I confirmed that a (forced) bounced email caused an event to arrive in SES and the SNS topic and get emailed to my email via another subscriber. How can I confirm that Airmail received the hook call and processed it successfully?

I noticed in your source code that when Airmail receives a bounce event, it makes an API3 call in EventAction.php:
$bounceEvent = civicrm_api3('Mailing', 'event_bounce', $params);

But I cannot tell what's in the $params or what the event_bounce function actually does. I'm assuming $params contains the SES Bounce message body which contains a parseable structure that AirMail or CiviMail can interpret. I was hoping it find the recipient email, looks it up in Civi Contacts and either sets the email to On Hold and/or unchecks send Bulk Emails. Possibly posts an activity as well.

I saw something about Elastic, which I'm guessing it uses to store a log of the incoming messages but I don't think that's required since I didn't see instructions in AirMail SES Readme or Baackend/Ses.php.

If the extension is just logging events for manual review, can you recommend an extension that actually flips the offending email to On Hold?

Thanks for your help!!
Norm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant