dev/core#6447 support sending yourself a test email from Message Admin#35648
dev/core#6447 support sending yourself a test email from Message Admin#35648ufundo wants to merge 1 commit into
Conversation
|
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
|
The issue associated with the Pull Request can be viewed at https://lab.civicrm.org/dev/core/-/issues/6447 |
| send: () => { | ||
| const subject = this.preview.subject; | ||
| const body = this.preview.html; | ||
| return crmStatus({start: ts('Sending...'), success: ts('Sent')}, crmApi4('EmailMessage', 'create', { |
There was a problem hiding this comment.
@ufundo is EmailMessage an API? I just cannot recall seeing it
There was a problem hiding this comment.
@seamuslee001 see above - this requires outbound_message extension
|
I like the idea of sending a preview. However, this is emailing the output of We've had lot's of issues relating to things not rendering correctly in certain email clients that have been notoriously difficult to reproduce - in mosaico and core with bits of html not being escaped etc. which @totten traced down to very weird inconsistencies in lineendings and different implementations of sendmail()/mail(). I would think that grabbing the rendered content in JS and sending it might hide that sort of issue? |
2e266c9 to
6485418
Compare
|
@eileenmcnaughton @larssandergreen I've updated this a) for the extension rename outbound_message => postbox; b) to check for @mattwire interesting point. The rationale for doing it this way was to allow testing the renderings done in the extension with the example / test data. As far as I can see I think it's an interesting point about the end-to-end-ness given that recent weird bug -- but was that actually an issue with the template content? I think the bug there was in the pipeline from |
6485418 to
a49475a
Compare
Overview
Approach to https://lab.civicrm.org/dev/core/-/work_items/6447 that uses Outbound Message https://lab.civicrm.org/extensions/outbound_message
Before
After
Technical Details
Relies on
outbound_message. Should we bring this into core? Has other potential uses - such as FormBuilder confirmation messages.Comments
Limited to sending to current logged in user - is this sufficient or is there a need to send to other contacts / arbitrary emails?
CC @eileenmcnaughton @larssandergreen