-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
[REF] Use CRM_Utils_Mail::send for sending emails for confirming unsu… #17396
[REF] Use CRM_Utils_Mail::send for sending emails for confirming unsu… #17396
Conversation
(Standard links)
|
@seamuslee001 Test fails relate |
@seamuslee001 This is great! I had not realised that these messages bypassed hooks etc. |
d3f76f5
to
2ad8bfe
Compare
@mattwire fixed the test failures now |
@seamuslee001 I tested this on a system with mail set to "redirect to database" and one that can actually send mail. Clicking an unsubscribe link (eg https://example.org/civicrm/mailing/unsubscribe?reset=1&jid=59&qid=29&h=64c9d6be9bd2bb44) works without the patch (an email is sent) but does NOT seem to work with the patch - no email is sent? |
@mattwire do you have any logs with errors? |
@seamuslee001 No logs - it is because you are passing |
2ad8bfe
to
8658a3e
Compare
@mattwire that looks like to have been it, I have fixed that on all emails changed here and also expanded a mailing subscription test to check that the email is sent and that a sensible message id header is set as well |
@seamuslee001 still failing :-( |
In case the test result disappears from jenkins:
|
…bscribe resubscribe auto replies and subscribing Fix sending issues found by matt and expand unit test to cover sending of subscription emails
8658a3e
to
52f4ecb
Compare
@eileenmcnaughton @mattwire @mlutfy I believe I have fixed the test now |
@seamuslee001 @mlutfy perhaps you could trade this for #17305 |
jenkins test this please |
|
@eileenmcnaughton can you merge based on @demeritcowboy 's review |
thanks @demeritcowboy - really appreciate all the review work you do and I have a tonne of confidence in your ability to ferrit out any gotchas |
Thanks @demeritcowboy @eileenmcnaughton Sorry @seamuslee001 this fell off my radar! |
…bscribe resubscribe auto replies and subscribing
Overview
This refactors the mail sending code for handling auto replies, unsubscribe/resubscribe/subscription confirmations to using the CRM_Utils_Mail::send method
Before
Multiple separate invocations of pear mail without running through a hook
After
Single invocation of pear mail and passing through the alterParams and alter content hooks
ping @eileenmcnaughton @mattwire