aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/helpers/send_email.t
Commit message (Collapse)AuthorAgeLines
* Update a number of packages.Matthew Somerville2019-05-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update: * Catalyst * Specify Catalyst::DispatchType::Regex explicitly * Remove Catalyst::Plugin::Unicode::Encoding * Catalyst::Plugin::SmartURI * Specify URI::SmartURI explicitly * Catalyst::Plugin::Static::Simple * CGI * Class::Load * DateTime * DateTime::TimeZone * DBD::Pg * DBIx::Class * DBIx::Class::EncodedColumn. * Email::Address. * Email::MIME * ExtUtils::MakeMaker * ExtUtils::ParseXS (for Params::Classify upgrade) * File::ChangeNotify * Image::Size * IO::Socket::SSL * local::lib * Moo * Moose (and some related others due to deprecations) * namespace::autoclean * Net::Server * Net::SSLeay * Number::Phone * Plack * Starman * Template * Test::PostgreSQL * Test::WWW::Mechanize::Catalyst * Text::CSV * YAML carton install was run on a wheezy box, the oldest that is supported, to make sure the required minimal vesions of core modules weren't removed from the snapshot. Cpanel::JSON::XS, Devel::GlobalDestruction::XS, and MooseX::NonMoose were then put back in the snapshot, in case another system needs them (e.g. system Perl on Mac looks for MooseX::NonMoose).
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-10/+0
|
* Upgrade to using Email::Sender.Matthew Somerville2017-03-28-3/+2
| | | | | | | | | | Email::Send is long deprecated and uses submodules that no longer work correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We create an Email::Sender subclass to perform the same functionality and this also simplifies the email code with simpler envelope handling. Bundle Email::Sender::Transport::SMTP to include fix from https://github.com/rjbs/Email-Sender/issues/46
* Add HTML email templates.Matthew Somerville2016-08-01-5/+27
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-2/+1
|
* Updates to cpanfile and code for perl 5.20/5.22.Matthew Somerville2016-03-23-6/+20
| | | | | | | | | | | | | | | | | | | | The following modules had bugs that have been fixed for working in recent perls: * List::MoreUtils * Guard * PadWalker * aliased * URI * Convert::NLS_DATE_FORMAT The CGI module was removed from core in 5.20, so include it in the snapshot (I don't think it's actually used, but is a dependency). "{" needs to be escaped in regular expressions, and ~~ should not be used. Fix some tests that expect e.g. a certain hash ordering, to use sorted output or better comparisons.
* Remove unnecessary shebang lines.Matthew Somerville2016-01-22-2/+0
|
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-9/+63
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* Update some tests to work around small changes in some underlying modules.Matthew Somerville2013-05-07-13/+4
|
* update test to use DO_NOT_REPLY_EMAIL conf option for from email addressStruan Donald2013-01-04-1/+1
|
* Make sure Message-ID is set on outgoing messages.Matthew Somerville2011-08-03-1/+2
|
* Fix session cookie test, and test based on contact_name that might change.Matthew Somerville2011-06-09-1/+3
|
* Improve email headers in emails sent.Matthew Somerville2011-06-07-6/+13
|
* Use correct email address in test.Matthew Somerville2011-05-03-1/+1
|
* Don't hardcode email addressEdmund von der Burg2011-04-05-1/+4
|
* use .txt suffix on email templatesEdmund von der Burg2011-03-23-2/+2
|
* Change emails to use construct_email from mySociety::Email for encoding and ↵Edmund von der Burg2011-03-03-16/+8
| | | | line wrapping
* Check that UTF8 in emails worksEdmund von der Burg2011-03-03-0/+4
|
* Simple email sendingEdmund von der Burg2011-03-02-0/+48