summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/PostmanSendGridMailEngine.php
diff options
context:
space:
mode:
authoryehuda <yehuda@myinbox.in>2019-03-04 16:36:02 +0200
committeryehuda <yehuda@myinbox.in>2019-03-04 16:36:02 +0200
commit18c7ae6216c4705a2942b07081469c4c0f1059fd (patch)
tree235e34430af8a892dafde3417af9d20b2dedb360 /Postman/Postman-Mail/PostmanSendGridMailEngine.php
parentf03a430175384cf672583c4423ae19c2e83fb91b (diff)
downloadPost-SMTP-18c7ae6216c4705a2942b07081469c4c0f1059fd.zip
* Added support for Mailgun Europe region.
* Replace "buggey" mime_content_type php function
Diffstat (limited to 'Postman/Postman-Mail/PostmanSendGridMailEngine.php')
-rw-r--r--Postman/Postman-Mail/PostmanSendGridMailEngine.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Postman/Postman-Mail/PostmanSendGridMailEngine.php b/Postman/Postman-Mail/PostmanSendGridMailEngine.php
index b6082f9..06302b0 100644
--- a/Postman/Postman-Mail/PostmanSendGridMailEngine.php
+++ b/Postman/Postman-Mail/PostmanSendGridMailEngine.php
@@ -260,9 +260,10 @@ if ( ! class_exists( 'PostmanSendGridMailEngine' ) ) {
$file_name = basename( $file );
$file_parts = explode( '.', $file_name );
+ $file_type = wp_check_filetype( $file );
$attachments[] = array(
'content' => base64_encode( file_get_contents( $file ) ),
- 'type' => mime_content_type( $file ),
+ 'type' => $file_type['type'],
'file_name' => $file_name,
'disposition' => 'attachment',
'id' => $file_parts[0],
@@ -279,4 +280,3 @@ if ( ! class_exists( 'PostmanSendGridMailEngine' ) ) {
}
}
}
-