[guadec-web] Flag the tax document mail content as utf8
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Flag the tax document mail content as utf8
- Date: Thu, 27 Jun 2013 20:21:56 +0000 (UTC)
commit f71d87d01a6c8b1aa2e8db24119a5d64533a8aaf
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Jun 27 22:21:02 2013 +0200
Flag the tax document mail content as utf8
wordcamp-base/template-registration.php | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/wordcamp-base/template-registration.php b/wordcamp-base/template-registration.php
index 749cc44..08684b6 100644
--- a/wordcamp-base/template-registration.php
+++ b/wordcamp-base/template-registration.php
@@ -651,6 +651,11 @@ function send_registration_email($reg)
remove_filter('wp_mail_content_type', 'set_html_content_type');
}
+function set_plain_utf8_content_type()
+{
+ return 'text/plain; charset=UTF-8';
+}
+
function send_tax_document($reg)
{
global $current_user;
@@ -659,7 +664,9 @@ function send_tax_document($reg)
return;
}
+ add_filter('wp_mail_content_type', 'set_plain_utf8_content_type');
wp_mail($current_user->user_email, '[GUADEC 2013] Registration tax document', $reg->tax_document);
+ remove_filter('wp_mail_content_type', 'set_plain_utf8_content_type');
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]