mysociety / writetothem

Write to your MP, MEP, & other elected representatives.
https://www.writetothem.com
Other
54 stars 11 forks source link

WIP: HTML email markup and styling #342

Closed zarino closed 8 years ago

zarino commented 8 years ago

Fixes #164.

To do:

See how they look on Litmus:

Confirmation: https://litmus.com/pub/40b8db9

Questionnaire: https://litmus.com/pub/f4c6538

Autoresponse: https://litmus.com/pub/974976e

jacksonj04 commented 8 years ago

nb: last time I looked at this the library we use to do emails doesn't happily play with multipart, although newer versions/alternatives are available which (in theory) do so nicely.

zarino commented 8 years ago

@jen @tmtmtmtm: This is ready for a developer to look at now.

struan commented 8 years ago

Plan:

zarino commented 8 years ago

Here's how it's looking for me, after the fixes in https://github.com/mysociety/writetothem/pull/342/commits/95fa9993bff7aa7d31bdcb5d98a7bd99ea5fc29dhttps://litmus.com/pub/405e5f3

struan commented 8 years ago

Confirmation email results at:

https://litmus.com/checklist/public/c1cf58b

And the questionnaire email is:

https://litmus.com/checklist/public/0de477c

Things to fix/investigate:

dracos commented 8 years ago

There is a test site on firefly, run with mysociety test writetothem (having this run on travis would be nice wouldn't it...). It gives a warning of uninitialized value $FYR::EmailSettings::td_style at FYR/EmailSettings.pm line 61 (looks like $td_style is used without being defined). It then dies because it can't find the confirmation email, I think because it is yucky and does it with text search and the To and Subject lines are now the other way round, so I think all the email checking calls will need updating before the test suite passes and this can be fully reviewed.

You'll also want to be deleting the AOL special handling that will corrupt these new emails :)

TomSteinberg commented 8 years ago

I have a age-old desire to know what the performance change is, once this is applied. Do please tell...