Commit Graph

95 Commits

Author SHA1 Message Date
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
Vlad
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -05: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
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
d05d033727 Forces ampersand as query separator for mailers 2017-03-08 14:34:35 -05: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
Vlad
c11b9677d5 Fixes 'Using $this when not in object context' error on PHP 5.3 2017-02-26 22:08:34 -05:00
Vlad
40ec5569d0 Removes "unprocessed subscriber" message since MailPoet's mailer method
processes subscribers in batches of 50 and it makes no sense to display
them all
2017-02-25 10:32:14 -05:00
Vlad
d14ecc982b Does not display unprocessed subscriber when sending a test message 2017-02-24 11:18:27 -05:00
Vlad
689c340081 Converts special characters to HTML entities for all error messages 2017-02-21 09:55:18 -05:00
Vlad
97eb772ab8 Enables temporarily disabled unit test 2017-02-20 13:17:06 -05:00
Vlad
bc40bbb44b Convert special characters to HTML entities when displaying email
addresses
2017-02-20 13:03:08 -05:00
Vlad
bdcfd77d42 Returns last unprocessed subscriber in error message 2017-02-16 23:25:05 -05:00
Vlad
c9519f0b3d Adds logger to record SMTP communication
Returns a more complete error message and last unprocessed subscriber
2017-02-16 22:45:09 -05:00
Alexey Stoletniy
b539eae7f9 Fix SendGrid error message assignment [MAILPOET-810] 2017-02-13 10:35:21 +03:00
Vlad
228a671749 Converts SendGrid's error response message from array to string 2017-02-11 05:41:02 -05:00
Tautvidas Sipavičius
6575d1579d Merge pull request #796 from mailpoet/sending_svc_api_consolidation
Consolidate Sending Service API calls in one class [MAILPOET-795]
2017-02-01 13:29:34 +02:00
Tautvidas Sipavičius
282199d362 Merge pull request #784 from mailpoet/sending_svc_key_validation
Add sending service key validation [MAILPOET-743]
2017-02-01 13:29:08 +02:00
Tautvidas Sipavičius
9f7ae122e3 Add missing periods to translation strings 2017-01-30 21:33:59 +02:00
Alexey Stoletniy
461203279b Consolidate Sending Service API calls in one class [MAILPOET-795] 2017-01-27 16:35:12 +03:00
Alexey Stoletniy
438b4fb1ec Add unit tests [MAILPOET-743] 2017-01-27 16:22:09 +03:00
Alexey Stoletniy
1f91d40def Add sending service key validation [MAILPOET-743] 2017-01-27 16:20:26 +03:00
Alexey Stoletniy
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
Vlad
02a5de0cd6 - Sets "sender" email header for SMTP/PHPMail methods 2017-01-04 10:22:17 -05:00
Vlad
c651a8bbe8 - Implements return path for SMTP/PHPMail/AmazonSES 2016-12-23 11:09:10 -05:00
Vlad
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
Vlad
5d12de8ec0 - Removes unused mailing methods 2016-11-28 09:47:07 -05:00
Vlad
1926b7ba29 - urlencodes POST data and fixes the "unable to determine service/operation
name to be authorized" error
2016-11-24 17:20:54 -05:00
Vlad
01af4d3401 - Fixes const value declaration for PHP <5.6 2016-10-28 10:13:56 -04:00
Vlad
8c28dc3d8a - Restricts Amazon SES region to a specific list of hosts
- Updates unit tests
- Closes #647
2016-10-16 12:19:47 -04:00
Vlad
ca7322933f - Fixes issue with incorrect transport being used for localhost sending 2016-02-24 11:56:29 -05:00
Vlad
7884dd8389 - Updates code to work with PHP 5.3. Closes #307 2016-01-31 14:02:57 -05:00
Vlad
2f42f643ab - Fixes message body construction 2016-01-28 22:29:47 -05:00
Vlad
7d224274fc - Rebases master & fixes some code 2016-01-28 09:40:57 -05:00
Vlad
f3b9f7be92 - Updates MailPoet mailer to support batch sending
- Fixes message encoding issue
2016-01-28 09:40:57 -05:00
Vlad
0776e9ad73 - Adds "reply to" option to all mailers
- Replaces WPMail with Swift using local transport (PHP mail)
- Fixes AmazonSES region naming convention
- Updates tests
2016-01-26 19:08:02 -05:00
Vlad
d0e770e0fc - Removes Mandrill API mailer method 2016-01-26 09:18:48 -05:00
Vlad
0dbe04c3f8 - Addresses issues identified during code review 2016-01-06 19:19:06 -05:00
Vlad
f1bf2bb097 - Refactors Mailer class
- Refactors SendingQueue worker class
- Adds Maier router with a send() method + ability to specify sending method
- Updates tests
- Introduces 'stopping' and 'starting' cron states
- Improves cron control mechanism
Closes #276
2016-01-05 10:34:57 -05:00