Commit Graph

69 Commits

Author SHA1 Message Date
03400bc4f7 Prevent using invalid bounce email address
[MAILPOET-2933]
2021-01-11 11:37:33 +01:00
0f7f173259 Fix required after optional warning in SMTP mailer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
3cdd224e14 Add an endpoint to set new authorized FROM email address
[MAILPOET-2804]
2020-04-01 16:21:15 +02:00
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
09a1411c81 Fix types with annotations [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
606f6b24aa Move mailer limit and frequency to where it is needed, make function non-static
[MAILPOET-2515]
2019-11-14 10:02:28 +00:00
ad9793f511 Use injected settings instead of static fetch
[MAILPOET-2515]
2019-11-14 10:02:28 +00:00
c1b9b279f6 Remove magic mailer initialization
[MAILPOET-2515]
2019-11-14 10:02:28 +00:00
d970dda637 Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
2019-11-06 16:32:32 +00:00
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
ef29a301fc Allow full name to be passed to mailer
[MAILPOET-2307]
2019-09-12 16:34:31 +02:00
8739646a6a Move mailer configuration to init method
[MAILPOET-2146]
2019-07-24 13:54:49 -04:00
d6f263ef3f Make method private
[MAILPOET-2146]
2019-07-24 13:54:49 -04:00
f86c0c9612 Refactor authorized emails validation from Bridge to Controller
[MAILPOET-2022]
2019-06-03 12:54:24 -04:00
cf7c5475c3 Add authorized emails check on error from MSS
[MAILPOET-1987]
2019-05-21 09:58:29 -04:00
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
b9af15e19f Enforce array trailling commas
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
wxa
994fae79d2 Move Mailer error tests to unit [MAILPOET-2009] 2019-05-03 08:41:05 -04:00
ab097d356a Fix PHPStan errors 2019-03-07 08:30:14 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
62dca415d4 Improve naming in SettingsController
[MAILPOET-1757]
2019-01-31 15:57:59 +01:00
f4f1770b1d Refactor MailPoet\Mailer to use new settings
[MAILPOET-1757]
2019-01-31 15:57:58 +01:00
wxa
467bef1d61 Do not require pluggable.php [MAILPOET-1650] 2018-11-22 17:01:33 +03:00
0923c892c1 Refactor sending methods to use error mappers
We want to add some logic to error handling.
This commit extracts error handling code from sending methods classes,
which already do a lot of other stuff, to error mappers which are responsible
for creating proper error object (MailerError). This error object is a replacement
for assoc. array which already had some special keys for certain usecases and
can not be properly type hinted.

[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
9c27384ba3 Passes responsibility for mailer error message HTML entity escaping from
server to the client side
2017-02-24 11:06:20 -05:00
689c340081 Converts special characters to HTML entities for all error messages 2017-02-21 09:55:18 -05:00
9f7ae122e3 Add missing periods to translation strings 2017-01-30 21:33:59 +02:00
19dc048858 Remove unused imports [MAILPOET-793] 2017-01-26 21:11:39 +03:00
938279bf8f Remove unsubscribe link generation from Mailer - to be solved in another task [MAILPOET-793] 2017-01-26 21:07:03 +03:00
dd2df429ef Add List-Unsubscribe header to emails [MAILPOET-793]
Amazon SES supports custom headers only via 'SendRawEmail' action
MailPoet Sending Service doesn't support custom headers yet
2017-01-26 15:38:23 +03:00
c651a8bbe8 - Implements return path for SMTP/PHPMail/AmazonSES 2016-12-23 11:09:10 -05:00
08ec4e83c8 - Adds method to clear previous errors
- Updates unit tests
- Rebases master
2016-11-28 12:20:13 -05:00
90a0061233 - Updates mailer log to record error messages, track retry attempts and
pause sending
2016-11-28 09:50:32 -05:00
8a278360f4 - Adds methods to format mailer send/connection succes & error results
- Updates all mailing methods to return true on success and error message
  on failure
2016-11-28 09:50:32 -05:00
5d12de8ec0 - Removes unused mailing methods 2016-11-28 09:47:07 -05:00
a9e02f745f - Encodes non-ASCII from/reply-to/to addresses as per RFC 2047 2016-11-28 08:56:14 -05:00
677060491d - Fixes an issue with unicode characters not rendering in from/reply-to/to
fields.
2016-11-25 15:34:55 -05:00
4402f826c3 fixed issue with namespace AND fixed issue #649 2016-10-06 12:54:04 +02:00
b9745b555a make sure ABSPATH is defined before using it - fixes issue #648 2016-10-06 12:52:53 +02:00
7fbf84db1f converted text domain to string instead of constant 2016-09-30 09:58:26 +02:00
42202f676a updated Env::plugin_name to constant for text domain 2016-09-27 14:54:23 +02:00
ba6198f956 added textdomain to __() calls 2016-09-27 14:53:44 +02:00
f88dabffe8 - Updates cron's sending queue worker to use model objects
- Adds new method to render newsletter to the newsletter model
- Adds new transient object to newsletter model that will hold temporary
  values (i.e., rendered body) when working with the model
2016-09-18 23:14:17 -04:00
3508ac36b4 - Removes daemon status logic and updates tests
- Refactors daemon
- Adds daemon unit tests
2016-09-08 19:22:42 -04:00
5fa9b5a8dd - Updates method name that returns mailer configuration 2016-08-05 13:03:31 -04:00
067b3ff3e6 - Updates Mailer class to use default values from Settings 2016-08-05 13:03:31 -04:00