Version Description
= 1.0 =
Re-release to update versioning to start at 1.0 instead of 0.1
= 0.1 =
Initial Release
Download this release
Release Info
| Developer | Mailgun |
| Plugin | |
| Version | 1.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2 to 1.3
- includes/wp-mail.php +8 -6
- mailgun.php +1 -1
- readme.txt +2 -2
includes/wp-mail.php
CHANGED
|
@@ -227,12 +227,14 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
|
|
| 227 |
if ( !empty( $attachments ) ){
|
| 228 |
$i = 0;
|
| 229 |
foreach ( $attachments as $attachment ) {
|
| 230 |
-
$
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
|
|
|
|
|
|
| 236 |
}
|
| 237 |
}
|
| 238 |
|
| 227 |
if ( !empty( $attachments ) ){
|
| 228 |
$i = 0;
|
| 229 |
foreach ( $attachments as $attachment ) {
|
| 230 |
+
if ( !empty( $attachment ) ) {
|
| 231 |
+
$payload .= '--' . $boundary;
|
| 232 |
+
$payload .= "\r\n";
|
| 233 |
+
$payload .= 'Content-Disposition: form-data; name="attachment[' . $i . ']"; filename="' . basename( $attachment ) . '"' . "\r\n\r\n";
|
| 234 |
+
$payload .= file_get_contents( $attachment );
|
| 235 |
+
$payload .= "\r\n";
|
| 236 |
+
$i++;
|
| 237 |
+
}
|
| 238 |
}
|
| 239 |
}
|
| 240 |
|
mailgun.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
* Plugin Name: Mailgun
|
| 4 |
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
|
| 5 |
* Description: Mailgun integration for WordPress
|
| 6 |
-
* Version: 1.
|
| 7 |
* Author: Mailgun
|
| 8 |
* Author URI: http://www.mailgun.com/
|
| 9 |
* License: GPLv2 or later
|
| 3 |
* Plugin Name: Mailgun
|
| 4 |
* Plugin URI: http://wordpress.org/extend/plugins/mailgun/
|
| 5 |
* Description: Mailgun integration for WordPress
|
| 6 |
+
* Version: 1.3
|
| 7 |
* Author: Mailgun
|
| 8 |
* Author URI: http://www.mailgun.com/
|
| 9 |
* License: GPLv2 or later
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: Mailgun, sivel
|
|
| 3 |
Tags: mailgun, smtp, http, api, mail, email
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 3.9
|
| 6 |
-
Stable tag: 1.
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
Easily send email from your WordPress site through Mailgun using the HTTP API or SMTP.
|
|
@@ -66,7 +66,7 @@ Initial Release
|
|
| 66 |
* Fixed errors related to undefined variable. https://github.com/mailgun/wordpress-plugin/pull/3
|
| 67 |
|
| 68 |
= 1.1 (2013-12-09): =
|
| 69 |
-
* Attachments are now handled properly.
|
| 70 |
* Added ability to customize tags and campaigns.
|
| 71 |
* Added ability to toggle URL and open tracking.
|
| 72 |
|
| 3 |
Tags: mailgun, smtp, http, api, mail, email
|
| 4 |
Requires at least: 3.3
|
| 5 |
Tested up to: 3.9
|
| 6 |
+
Stable tag: 1.3
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
Easily send email from your WordPress site through Mailgun using the HTTP API or SMTP.
|
| 66 |
* Fixed errors related to undefined variable. https://github.com/mailgun/wordpress-plugin/pull/3
|
| 67 |
|
| 68 |
= 1.1 (2013-12-09): =
|
| 69 |
+
* Attachments are now handled properly.
|
| 70 |
* Added ability to customize tags and campaigns.
|
| 71 |
* Added ability to toggle URL and open tracking.
|
| 72 |
|
