aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Model
Commit message (Collapse)AuthorAgeLines
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-8/+12
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-2/+2
| | | | Command line scripts don't need a full blown app, just database.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-53/+2
|
* Base 64 decode uploaded images if requiredSteven Day2015-10-06-1/+20
| | | | | | | | | | | The new Zurich app has to base64 encode some images into a multipart request so that it can (ab)use Phonegap's FileTransfer plugin to send more than one image in a single request to /report/new/mobile. Catalyst's Request::Upload module doesn't look at the Content-Transfer-Encoding header inside multipart requests to do this automatically, so we perform the decoding manually when we process the images in the PhotoSet model.
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-1/+19
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-0/+269
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-2/+2
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Add support for SMTP authentication and TLS.Matthew Somerville2014-07-14-1/+20
| | | | | | Fixes #406. Include Perl modules necessary for Email::Send::SMTP to handle TLS/SSL, and upgrade Dir::Self due to https://rt.cpan.org/Public/Bug/Display.html?id=88393
* Wrapper around Email::Send::SMTP to set sender.Matthew Somerville2012-05-28-1/+1
|
* Fix incorrect mailer_argsEdmund von der Burg2011-04-05-1/+1
|
* Simple email sendingEdmund von der Burg2011-03-02-0/+51
|
* Added FixMyStreet::DB as a model to FixMyStreet::AppEdmund von der Burg2011-03-01-0/+24