Skip to content

Commit

Permalink
De 983 add action when mail fails (#161)
Browse files Browse the repository at this point in the history
* Changed `Tested Up` version of WP

* Changed `Tested Up` version of WP

* Fix bug with wp_mail filter. release new version

* - Added action for better dev experience in tracking error `mailgun_error_track`
- Added header `h:Sender`
  • Loading branch information
oleksandr-mykhailenko authored Mar 28, 2023
1 parent 7ad52a4 commit b7e9711
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Changelog
=========
1.9.2 (2023-03-28)
- Added action for better dev experience in tracking error `mailgun_error_track`
- Added header `h:Sender`

1.9.1 (2023-03-26)
- Remove not needed error logging.
- Fixed bug with Override param for Woocommerce

1.9 (2023-01-18)
- Sanitizing and escaping vars. Possible security issues

1.8.10 (2022-12-26)
- Fixed bug with not overriding `from name` for Woocommerce

Expand Down
1 change: 1 addition & 0 deletions includes/wp-mail-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function mg_api_last_error($error = null)
return $last_error;
}

do_action('mailgun_error_track', $error);
$tmp = $last_error;
$last_error = $error;

Expand Down
2 changes: 1 addition & 1 deletion mailgun.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Mailgun
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
* Description: Mailgun integration for WordPress
* Version: 1.9.1
* Version: 1.9.2
* Tested up to: 6.1
* Author: Mailgun
* Author URI: http://www.mailgun.com/
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ MAILGUN_FROM_ADDRESS Type: string

== Changelog ==

= 1.9.2 (2023-03-28): =
- Added action for better dev experience in tracking error `mailgun_error_track`
- Added header `h:Sender`

= 1.9.1 (2023-03-26): =
- Remove not needed error logging.
- Fixed bug with Override param for Woocommerce
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contributors: mailgun, sivel, lookahead.io, m35dev
Tags: mailgun, smtp, http, api, mail, email
Requires at least: 4.4
Tested up to: 6.1.1
Stable tag: 1.9.1
Stable tag: 1.9.2
Requires PHP: 5.6
License: GPLv2 or later

Expand Down Expand Up @@ -129,6 +129,10 @@ MAILGUN_FROM_ADDRESS Type: string

== Changelog ==

= 1.9.2 (2023-03-28): =
- Added action for better dev experience in tracking error `mailgun_error_track`
- Added header `h:Sender`

= 1.9.1 (2023-03-26): =
- Remove not needed error logging.
- Fixed bug with Override param for Woocommerce
Expand Down

0 comments on commit b7e9711

Please sign in to comment.