-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Remove Emogrifier (temporary) #14899
Conversation
…ODX via composer using PHP 7.4
I would honestly like to see if we can find an alternative to this project. Even their current solution is going to specifically add 7.4 to their list of platform dependencies. There are no other dependencies we are using that I am aware of which do this. That means when 7.5 comes out, we will go through the same problem again. If there is no other viable solution, then perhaps we can add it back. But in the meantime, I'd like to try to find a replacement. |
We could add an event into modPHPMailer (something like OnBeforeMailSend or whatever) and move the functionality of inlining CSS to a separate extra. |
I like that idea. Would it have to be inside the PHPMailer implementation of modMail, or could it be generic enough to work with all modMail implementations? |
@Mark-H original idea was to make MODX default emails pretty, so I made this template with styles. If you will remove or move |
Don't you think we can keep the nice template, and just accept that it may not look perfect in all email clients, unless people install an extra to inline the CSS? I've not checked recently, but hopefully the more modern clients will also parse some styles from the head? I'm very happy the default templates got their much needed upgrade, great work on that. :) |
It looks like it could probably also go into modMail.send and use the get/set methods on modMail to get/set the body. That should then work PHPMailer, but not with modSwiftMailer (the only third party mailer I know off) because that does not call the parent::send method. As the latter does not look like it'll work in 3.0 without updates regardless, I'd be happy to only focus on the core modMail/modPHPMailer. |
@Mark-H Yeah, as long as it is possible to use the event with any implementation, that's all I wanted to accomplish. It looks like modSwiftMailer might not be maintained any longer and I may look into updating it to see if I can get it to work with the proposed event. |
Gmail still not modern enough to support styles head tag. I've made a new PR to replace Emogrifier to InlineStyle. Looks like it makes the same job but much more lightweight - only one class and pretty simple composer.json |
I opted for using #14905 in order to move forward on this issue. We can continue the discussion though. |
What does it do?
Remove Emogrifier (temporary)
Why is it needed?
Emogrifier's platform requirements prevent us from installing MODX using
composer install
.Travis also fails due to this. Once we can use a version of Emogrifier that allows us to install it under PHP 7.4 we can add it back.
Related issue(s)/PR(s)