Commit Graph

141 Commits

Author SHA1 Message Date
Rostislav Wolny
d4abbf1fb6 Fix email authorization URL address
[MAILPOET-1876]
2019-03-11 09:47:06 -04:00
Amine Ben hammou
ab097d356a Fix PHPStan errors 2019-03-07 08:30:14 -05:00
Amine Ben hammou
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
Ján Mikláš
bad69b0e24 Save translated message to logs, not just translation key
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
b95dc9296c Move generating 403 error messages to separate methods
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
5c78028232 Add rel="noopener noreferrer" to links
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
f5feb032fe Show error notice when email is sent from unauthorized email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
79bd178123 Add integration test for unauthorized email
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
Ján Mikláš
91c88bc93f Better error code name when not able to send mails
[MAILPOET-1787]
2019-02-28 12:28:53 -05:00
wxa
fb77167a1f Remove unused imports [MAILPOET-1825] 2019-02-21 09:51:53 -05:00
Ján Mikláš
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
9e9561e576 Add space between catch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
a8972ca281 Add space between switch and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
fba2914392 Add space between for and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Rostislav Wolny
62dca415d4 Improve naming in SettingsController
[MAILPOET-1757]
2019-01-31 15:57:59 +01:00
Rostislav Wolny
f4f1770b1d Refactor MailPoet\Mailer to use new settings
[MAILPOET-1757]
2019-01-31 15:57:58 +01:00
Amine Ben hammou
8b602bd947 Move WPHooks methods to WPFunctions 2019-01-31 13:25:00 +01:00
Tautvidas Sipavičius
9f13f68e39 Fix "Access to undefined property" rule violations 2019-01-23 11:33:47 +02:00
Amine Ben hammou
a46d98ec44 Refactor WPFunctions to be injectable with DI 2018-12-12 16:43:52 +01:00
Amine Ben hammou
160d4ae3ec Pause sending of spammer users [MAILPOET-1649] 2018-11-28 18:27:44 +01:00
wxa
467bef1d61 Do not require pluggable.php [MAILPOET-1650] 2018-11-22 17:01:33 +03:00
Rostislav Wolny
f5c9d0f7db Remove unnecessary test_email extra parameter for mailer->send
It was used only to prevent appending unprocessed subscribers into error message.
Since the message is now composed by on demand by MailerError the parameter is not needed any more.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
665fce9dbb Temporarily set every sending error to hard
This is temporary solution until we implement follow-up feature https://mailpoet.atlassian.net/browse/MAILPOET-1155

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
624c6d900e Add processing of soft errors
When processing soft error we only save error to particular subscriber and continue sending.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
fe69b56692 Add soft level errors distinction for PHPMail method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
45433c9deb Add soft level errors distinction for SMTP method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
6437f4a1b3 Add soft level errors distinction for SendGrid service
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
6df1db933e Add soft level errors distinction for Amazon SES service
[MAILPOET-1154]
2018-09-13 11:12:01 +02:00
Rostislav Wolny
db3ddd22f1 Add soft level errors distinction for MailPoet service
[MAILPOET-1154]
2018-09-13 09:52:13 +02:00
Rostislav Wolny
223c2e1562 Add subscriber errors passing via MailerError object
We want to process errors for individual subscribers.
Subscriber errors were inlined into error message string.
This commit changes this so that we are now able to get
subscriber errors as a data which are easy to process further.

[MAILPOET-1154]
2018-09-13 09:48:54 +02:00
Rostislav Wolny
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
Pavel Dohnal
27b9857e6a Improve error reporting for MSS sending
[MAILPOET-1445]
2018-07-19 16:21:23 +01:00
stoletniy
03015c0bde Fix code review syntax remarks [MAILPOET-903] 2018-02-26 16:30:53 +03:00
stoletniy
c0c57f6b67 Sending queue refactoring WIP [MAILPOET-903] 2018-02-13 11:39:50 +03:00
Vlad
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -05:00
Vlad
6c25fab6d6 Adds option to pause sending after processing sending error 2018-01-09 12:25:04 +00:00
stoletniy
8afe7f5d97 Make rendering error during sending more descriptive [MAILPOET-1232] 2017-11-30 19:45:53 +03:00
Vlad
b6f62bd9bc Catches exceptions during sending 2017-11-28 16:42:22 +00:00
mrcasual
0da0507e0a Fixes SMTP timing out on slow hosts
Increases default connection timeout value
Adds filter to specify custom connection timeout value

[MAILPOET-1004]
2017-07-17 15:21:33 +01:00
Vlad
34d09ce0c9 Sets mailer log error when queue cannot be saved during newsletter
pre-processing
2017-07-14 23:15:14 -04:00
mrcasual
cbcd9fb22f Adds support for list-unsubscribe header to the MSS method
[MAILPOET-956]
2017-06-19 16:19:31 +01:00
Vlad
c91f8ccc7a Replaces SwiftMailer's mail() method with WP's PHPMailer 2017-06-09 09:52:22 -04:00
Alexey Stoletniy
3cb08e3c09 Rename MSS check methods to better distinguish them from Premium ones [PREMIUM-4] 2017-05-04 09:36:38 +03:00
Vlad
4a538e677d Adds filter to SMTP transport agent 2017-04-26 09:55:57 -04:00
Vlad
0ef430567b Fixes sending limit not being enforced when email frequency limit is
changed to a lesser value OR when it is changed while sending is in
progress
2017-04-04 09:43:27 -04:00
Vlad
d05d033727 Forces ampersand as query separator for mailers 2017-03-08 14:34:35 -05:00
stoletniy
7f0195378c Merge pull request #833 from mailpoet/stop_daemon_with_sending_is_paused
Stops cron daemon when sending is paused due to an error [MAILPOET-839]
2017-02-27 16:49:55 +03:00
stoletniy
6caa3a069b Merge pull request #832 from mailpoet/mailer_output_escape_fix
Fixes double escaping of HTML entities in mailer output [MAILPOET-836]
2017-02-27 10:52:10 +03:00
Alexey Stoletniy
b2a92feb50 Restore unnecessary $this replacements [MAILPOET-840] 2017-02-27 10:18:14 +03:00