Version Description
- If the field "From" was not a valid email address, or the field "Host" was left blank, it will not reconfigure the wp_mail() function.
- Add some reminders.
Download this release
Release Info
Developer | acalbert |
Plugin | WP SMTP |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- lang/wp-smtp-zh_CN.mo +0 -0
- lang/wp-smtp-zh_CN.po +31 -23
- readme.txt +8 -2
- wp-smtp.php +4 -1
- wp_smtp_admin.php +11 -3
lang/wp-smtp-zh_CN.mo
CHANGED
Binary file
|
lang/wp-smtp-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-SMTP Languages\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2012-11-
|
6 |
-
"PO-Revision-Date: 2012-11-
|
7 |
"Last-Translator: 夜光 <berttung(#)gmail.com>\n"
|
8 |
"Language-Team: 玻璃泉BoLiQuan.COM <berttung(#)gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,79 +16,87 @@ msgstr ""
|
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: F:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\wp-smtp\n"
|
18 |
|
19 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp-smtp.php:
|
20 |
msgid "Settings"
|
21 |
msgstr "设置"
|
22 |
|
23 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
msgid "Options saved."
|
25 |
msgstr "设置已保存。"
|
26 |
|
27 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
28 |
-
msgid "Message
|
29 |
msgstr "邮件已发送!"
|
30 |
|
31 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
32 |
-
msgid "
|
33 |
msgstr "发生了一些错误!"
|
34 |
|
35 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
36 |
msgid "From"
|
37 |
msgstr "发件人地址"
|
38 |
|
39 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
40 |
msgid "From Name"
|
41 |
msgstr "发件人昵称"
|
42 |
|
43 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
44 |
msgid "Host"
|
45 |
msgstr "SMTP服务器地址"
|
46 |
|
47 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
48 |
msgid "SMTP Secure"
|
49 |
msgstr "SMTP加密方式"
|
50 |
|
51 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
52 |
msgid "Port"
|
53 |
msgstr "SMTP端口"
|
54 |
|
55 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
56 |
msgid "SMTP Authentication"
|
57 |
msgstr "SMTP认证"
|
58 |
|
59 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
60 |
msgid "Username"
|
61 |
msgstr "认证用户名 (完整邮件地址)"
|
62 |
|
63 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
64 |
msgid "Password"
|
65 |
msgstr "认证密码"
|
66 |
|
67 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
68 |
msgid "Delete Options"
|
69 |
msgstr "禁用时自动删除设置"
|
70 |
|
71 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
72 |
msgid "Delete options while deactivate this plugin."
|
73 |
msgstr "当禁用此插件时自动删除此插件的设置数据."
|
74 |
|
75 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
76 |
msgid "Save Changes"
|
77 |
msgstr "保存更改"
|
78 |
|
79 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
80 |
msgid "To:"
|
81 |
msgstr "收件地址:"
|
82 |
|
83 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
84 |
msgid "Subject:"
|
85 |
msgstr "邮件标题:"
|
86 |
|
87 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
88 |
msgid "Message:"
|
89 |
msgstr "邮件正文:"
|
90 |
|
91 |
-
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:
|
92 |
msgid "Send Test"
|
93 |
msgstr "发送测试"
|
94 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP-SMTP Languages\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-11-13 13:14+0800\n"
|
6 |
+
"PO-Revision-Date: 2012-11-13 13:47+0800\n"
|
7 |
"Last-Translator: 夜光 <berttung(#)gmail.com>\n"
|
8 |
"Language-Team: 玻璃泉BoLiQuan.COM <berttung(#)gmail.com>\n"
|
9 |
"MIME-Version: 1.0\n"
|
16 |
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
"X-Poedit-SearchPath-0: F:\\xampp\\htdocs\\wordpress\\wp-content\\plugins\\wp-smtp\n"
|
18 |
|
19 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp-smtp.php:66
|
20 |
msgid "Settings"
|
21 |
msgstr "设置"
|
22 |
|
23 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:21
|
24 |
+
msgid "The field \"From\" must be a valid email address!"
|
25 |
+
msgstr "“发件人地址”必须是一个有效的电子邮件地址!"
|
26 |
+
|
27 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:24
|
28 |
+
msgid "The field \"Host\" can not be left blank!"
|
29 |
+
msgstr "“SMTP服务器地址”不能为空!"
|
30 |
+
|
31 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:27
|
32 |
msgid "Options saved."
|
33 |
msgstr "设置已保存。"
|
34 |
|
35 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:47
|
36 |
+
msgid "Message sent!"
|
37 |
msgstr "邮件已发送!"
|
38 |
|
39 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:54
|
40 |
+
msgid "Some errors occurred!"
|
41 |
msgstr "发生了一些错误!"
|
42 |
|
43 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:76
|
44 |
msgid "From"
|
45 |
msgstr "发件人地址"
|
46 |
|
47 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:86
|
48 |
msgid "From Name"
|
49 |
msgstr "发件人昵称"
|
50 |
|
51 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:96
|
52 |
msgid "Host"
|
53 |
msgstr "SMTP服务器地址"
|
54 |
|
55 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:106
|
56 |
msgid "SMTP Secure"
|
57 |
msgstr "SMTP加密方式"
|
58 |
|
59 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:127
|
60 |
msgid "Port"
|
61 |
msgstr "SMTP端口"
|
62 |
|
63 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:137
|
64 |
msgid "SMTP Authentication"
|
65 |
msgstr "SMTP认证"
|
66 |
|
67 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:153
|
68 |
msgid "Username"
|
69 |
msgstr "认证用户名 (完整邮件地址)"
|
70 |
|
71 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:163
|
72 |
msgid "Password"
|
73 |
msgstr "认证密码"
|
74 |
|
75 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:173
|
76 |
msgid "Delete Options"
|
77 |
msgstr "禁用时自动删除设置"
|
78 |
|
79 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:178
|
80 |
msgid "Delete options while deactivate this plugin."
|
81 |
msgstr "当禁用此插件时自动删除此插件的设置数据."
|
82 |
|
83 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:186
|
84 |
msgid "Save Changes"
|
85 |
msgstr "保存更改"
|
86 |
|
87 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:195
|
88 |
msgid "To:"
|
89 |
msgstr "收件地址:"
|
90 |
|
91 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:205
|
92 |
msgid "Subject:"
|
93 |
msgstr "邮件标题:"
|
94 |
|
95 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:215
|
96 |
msgid "Message:"
|
97 |
msgstr "邮件正文:"
|
98 |
|
99 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:226
|
100 |
msgid "Send Test"
|
101 |
msgstr "发送测试"
|
102 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: wp smtp,smtp,mail,email,phpmailer,mailer,wp mail,gmail,mail smtp,ssl,tls
|
|
5 |
License: GPLv2
|
6 |
Requires at least: 2.7
|
7 |
Tested up to: 3.4.2
|
8 |
-
Stable tag: 1.1.
|
9 |
|
10 |
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
11 |
|
@@ -13,7 +13,8 @@ WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
|
13 |
|
14 |
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
15 |
It adds a settings page to "Dashboard"->"Settings"->"WP SMTP" where you can configure the email settings.
|
16 |
-
There are some examples on the settings page, you can click the corresponding icon to view.
|
|
|
17 |
|
18 |
= Usage =
|
19 |
|
@@ -46,6 +47,11 @@ Related Links:
|
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
= 1.1.3 =
|
50 |
|
51 |
* If "SMTP Authentication" was set to no, the values "Username""Password" are ignored.
|
5 |
License: GPLv2
|
6 |
Requires at least: 2.7
|
7 |
Tested up to: 3.4.2
|
8 |
+
Stable tag: 1.1.4
|
9 |
|
10 |
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
11 |
|
13 |
|
14 |
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
15 |
It adds a settings page to "Dashboard"->"Settings"->"WP SMTP" where you can configure the email settings.
|
16 |
+
There are some examples on the settings page, you can click the corresponding icon to view (such as "Gmail").
|
17 |
+
If the field "From" was not a valid email address, or the field "Host" was left blank, it will not reconfigure the wp_mail() function.
|
18 |
|
19 |
= Usage =
|
20 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= 1.1.4 =
|
51 |
+
|
52 |
+
* If the field "From" was not a valid email address, or the field "Host" was left blank, it will not reconfigure the wp_mail() function.
|
53 |
+
* Add some reminders.
|
54 |
+
|
55 |
= 1.1.3 =
|
56 |
|
57 |
* If "SMTP Authentication" was set to no, the values "Username""Password" are ignored.
|
wp-smtp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP SMTP
|
4 |
Plugin URI: http://boliquan.com/wp-smtp/
|
5 |
Description: WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
6 |
-
Version: 1.1.
|
7 |
Author: BoLiQuan
|
8 |
Author URI: http://boliquan.com/
|
9 |
Text Domain: WP-SMTP
|
@@ -23,6 +23,9 @@ $wsOptions = get_option("wp_smtp_options");
|
|
23 |
|
24 |
function wp_smtp($phpmailer){
|
25 |
global $wsOptions;
|
|
|
|
|
|
|
26 |
$phpmailer->Mailer = "smtp";
|
27 |
$phpmailer->From = $wsOptions["from"];
|
28 |
$phpmailer->FromName = $wsOptions["fromname"];
|
3 |
Plugin Name: WP SMTP
|
4 |
Plugin URI: http://boliquan.com/wp-smtp/
|
5 |
Description: WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
6 |
+
Version: 1.1.4
|
7 |
Author: BoLiQuan
|
8 |
Author URI: http://boliquan.com/
|
9 |
Text Domain: WP-SMTP
|
23 |
|
24 |
function wp_smtp($phpmailer){
|
25 |
global $wsOptions;
|
26 |
+
if( !is_email($wsOptions["from"]) || empty($wsOptions["host"]) ){
|
27 |
+
return;
|
28 |
+
}
|
29 |
$phpmailer->Mailer = "smtp";
|
30 |
$phpmailer->From = $wsOptions["from"];
|
31 |
$phpmailer->FromName = $wsOptions["fromname"];
|
wp_smtp_admin.php
CHANGED
@@ -17,7 +17,15 @@ function wp_smtp_page(){
|
|
17 |
$wsOptions["password"] = trim($_POST['wp_smtp_password']);
|
18 |
$wsOptions["deactivate"] = (isset($_POST['wp_smtp_deactivate'])) ? trim($_POST['wp_smtp_deactivate']) : "";
|
19 |
update_option("wp_smtp_options",$wsOptions);
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
if(isset($_POST['wp_smtp_test'])){
|
23 |
$to = trim($_POST['wp_smtp_to']);
|
@@ -36,14 +44,14 @@ function wp_smtp_page(){
|
|
36 |
}
|
37 |
if(!$failed){
|
38 |
if($result==TRUE){
|
39 |
-
echo '<div id="message" class="updated fade"><p><strong>' . __("Message
|
40 |
}
|
41 |
else{
|
42 |
$failed = 1;
|
43 |
}
|
44 |
}
|
45 |
if($failed){
|
46 |
-
echo '<div id="message" class="updated fade"><p><strong>' . __("
|
47 |
}
|
48 |
}
|
49 |
?>
|
17 |
$wsOptions["password"] = trim($_POST['wp_smtp_password']);
|
18 |
$wsOptions["deactivate"] = (isset($_POST['wp_smtp_deactivate'])) ? trim($_POST['wp_smtp_deactivate']) : "";
|
19 |
update_option("wp_smtp_options",$wsOptions);
|
20 |
+
if(!is_email($wsOptions["from"])){
|
21 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("The field \"From\" must be a valid email address!","WP-SMTP") . '</strong></p></div>';
|
22 |
+
}
|
23 |
+
elseif(empty($wsOptions["host"])){
|
24 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("The field \"Host\" can not be left blank!","WP-SMTP") . '</strong></p></div>';
|
25 |
+
}
|
26 |
+
else{
|
27 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Options saved.") . '</strong></p></div>';
|
28 |
+
}
|
29 |
}
|
30 |
if(isset($_POST['wp_smtp_test'])){
|
31 |
$to = trim($_POST['wp_smtp_to']);
|
44 |
}
|
45 |
if(!$failed){
|
46 |
if($result==TRUE){
|
47 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Message sent!","WP-SMTP") . '</strong></p></div>';
|
48 |
}
|
49 |
else{
|
50 |
$failed = 1;
|
51 |
}
|
52 |
}
|
53 |
if($failed){
|
54 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Some errors occurred!","WP-SMTP") . '</strong></p></div>';
|
55 |
}
|
56 |
}
|
57 |
?>
|