Version Description
- First release.
=
Download this release
Release Info
Developer | acalbert |
Plugin | WP SMTP |
Version | 1.1.2 |
Comparing to | |
See all releases |
Version 1.1.2
- img/163.png +0 -0
- img/alipay_donate.png +0 -0
- img/blq_32_32.jpg +0 -0
- img/btn_donateCC_LG.gif +0 -0
- img/gmail.png +0 -0
- img/paypal_32_32.jpg +0 -0
- img/qq.png +0 -0
- lang/wp-smtp-zh_CN.mo +0 -0
- lang/wp-smtp-zh_CN.po +94 -0
- readme.txt +63 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- wp-smtp.php +70 -0
- wp_smtp_admin.php +256 -0
img/163.png
ADDED
Binary file
|
img/alipay_donate.png
ADDED
Binary file
|
img/blq_32_32.jpg
ADDED
Binary file
|
img/btn_donateCC_LG.gif
ADDED
Binary file
|
img/gmail.png
ADDED
Binary file
|
img/paypal_32_32.jpg
ADDED
Binary file
|
img/qq.png
ADDED
Binary file
|
lang/wp-smtp-zh_CN.mo
ADDED
Binary file
|
lang/wp-smtp-zh_CN.po
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP-SMTP Languages\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2012-11-09 14:15+0800\n"
|
6 |
+
"PO-Revision-Date: 2012-11-09 14:16+0800\n"
|
7 |
+
"Last-Translator: 夜光 <berttung(#)gmail.com>\n"
|
8 |
+
"Language-Team: 玻璃泉BoLiQuan.COM <berttung(#)gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: __;_e\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-Language: English\n"
|
15 |
+
"X-Poedit-Country: CHINA\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:61
|
20 |
+
msgid "Settings"
|
21 |
+
msgstr "设置"
|
22 |
+
|
23 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:20
|
24 |
+
msgid "Options saved."
|
25 |
+
msgstr "设置已保存。"
|
26 |
+
|
27 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:39
|
28 |
+
msgid "Message Sent!"
|
29 |
+
msgstr "邮件已发送!"
|
30 |
+
|
31 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:46
|
32 |
+
msgid "Something Error!"
|
33 |
+
msgstr "发生了一些错误!"
|
34 |
+
|
35 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:67
|
36 |
+
msgid "From"
|
37 |
+
msgstr "发件人地址"
|
38 |
+
|
39 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:77
|
40 |
+
msgid "From Name"
|
41 |
+
msgstr "发件人昵称"
|
42 |
+
|
43 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:87
|
44 |
+
msgid "Host"
|
45 |
+
msgstr "SMTP服务器地址"
|
46 |
+
|
47 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:97
|
48 |
+
msgid "SMTP Secure"
|
49 |
+
msgstr "SMTP加密方式"
|
50 |
+
|
51 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:118
|
52 |
+
msgid "Port"
|
53 |
+
msgstr "端口"
|
54 |
+
|
55 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:128
|
56 |
+
msgid "SMTP Authentication"
|
57 |
+
msgstr "SMTP认证"
|
58 |
+
|
59 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:144
|
60 |
+
msgid "Username"
|
61 |
+
msgstr "认证用户名 (完整邮件地址)"
|
62 |
+
|
63 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:154
|
64 |
+
msgid "Password"
|
65 |
+
msgstr "认证密码"
|
66 |
+
|
67 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:164
|
68 |
+
msgid "Delete Options"
|
69 |
+
msgstr "禁用时自动删除设置"
|
70 |
+
|
71 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:169
|
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:177
|
76 |
+
msgid "Save Changes"
|
77 |
+
msgstr "保存更改"
|
78 |
+
|
79 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:186
|
80 |
+
msgid "To:"
|
81 |
+
msgstr "收件地址:"
|
82 |
+
|
83 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:196
|
84 |
+
msgid "Subject:"
|
85 |
+
msgstr "邮件标题:"
|
86 |
+
|
87 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:206
|
88 |
+
msgid "Message:"
|
89 |
+
msgstr "邮件正文:"
|
90 |
+
|
91 |
+
#: F:\xampp\htdocs\wordpress\wp-content\plugins\wp-smtp/wp_smtp_admin.php:217
|
92 |
+
msgid "Send Test"
|
93 |
+
msgstr "发送测试"
|
94 |
+
|
readme.txt
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WP SMTP ===
|
2 |
+
Contributors: boliquan
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SKA6TPPWSATKG&item_name=BoLiQuan&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8
|
4 |
+
Tags: wp smtp,smtp,mail,phpmailer,mailer,wp mail,gmail
|
5 |
+
License: GPLv2
|
6 |
+
Requires at least: 2.7
|
7 |
+
Tested up to: 3.4.2
|
8 |
+
Stable tag: 1.1.2
|
9 |
+
|
10 |
+
WP SMTP can help us to send emails via SMTP instead of the PHP mail() function.
|
11 |
+
|
12 |
+
== Description ==
|
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 |
+
|
17 |
+
= Usage =
|
18 |
+
|
19 |
+
1. Download and extract `wp-smtp.zip` to `wp-content/plugins/`
|
20 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
21 |
+
3. "Dashboard"->"Settings"->"WP SMTP"
|
22 |
+
|
23 |
+
Related Links:
|
24 |
+
|
25 |
+
* <a href="http://boliquan.com/wp-smtp/">WP SMTP</a> | <a href="http://wordpress.org/extend/plugins/wp-smtp/">Download</a>
|
26 |
+
* <a href="http://boliquan.com/wp-anti-spam/">WP Anti Spam</a> | <a href="http://wordpress.org/extend/plugins/wp-anti-spam/">Download</a>
|
27 |
+
* <a href="http://boliquan.com/wp-code-highlight/">WP Code Highlight</a> | <a href="http://wordpress.org/extend/plugins/wp-code-highlight/">Download</a>
|
28 |
+
* <a href="http://boliquan.com/wp-slug-translate/">WP Slug Translate</a> | <a href="http://wordpress.org/extend/plugins/wp-slug-translate/">Download</a>
|
29 |
+
* <a href="http://boliquan.com/yg-share/">YG Share</a> | <a href="http://wordpress.org/extend/plugins/yg-share/">Download</a>
|
30 |
+
* <a href="http://boliquan.com/">BoLiQuan</a>
|
31 |
+
* <a href="http://boliquan.com/">玻璃泉</a>
|
32 |
+
* <a href="http://boliquan.com/">夜光</a>
|
33 |
+
* <a href="http://boliquan.com/ylife/">YLife</a> | <a href="http://code.google.com/p/ylife/downloads/list">Download</a>
|
34 |
+
|
35 |
+
|
36 |
+
== Installation ==
|
37 |
+
|
38 |
+
1. Download and extract `wp-smtp.zip` to `wp-content/plugins/`
|
39 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
40 |
+
3. "Dashboard"->"Settings"->"WP SMTP"
|
41 |
+
|
42 |
+
== Changelog ==
|
43 |
+
|
44 |
+
= 1.1.2 =
|
45 |
+
|
46 |
+
* First release.
|
47 |
+
|
48 |
+
|
49 |
+
== Screenshots ==
|
50 |
+
|
51 |
+
1. "Gmail.com" settings
|
52 |
+
2. "163.com" settings
|
53 |
+
3. "QQ.com" settings
|
54 |
+
|
55 |
+
|
56 |
+
== Frequently Asked Questions ==
|
57 |
+
|
58 |
+
You can sumbit it in http://boliquan.com/wp-smtp/
|
59 |
+
|
60 |
+
|
61 |
+
== Upgrade Notice ==
|
62 |
+
|
63 |
+
Please visit http://boliquan.com/wp-smtp/
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
wp-smtp.php
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
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.2
|
7 |
+
Author: BoLiQuan
|
8 |
+
Author URI: http://boliquan.com/
|
9 |
+
Text Domain: WP-SMTP
|
10 |
+
Domain Path: /lang
|
11 |
+
*/
|
12 |
+
|
13 |
+
function load_wp_smtp_lang(){
|
14 |
+
$currentLocale = get_locale();
|
15 |
+
if(!empty($currentLocale)){
|
16 |
+
$moFile = dirname(__FILE__) . "/lang/wp-smtp-" . $currentLocale . ".mo";
|
17 |
+
if(@file_exists($moFile) && is_readable($moFile)) { load_textdomain('WP-SMTP',$moFile); }
|
18 |
+
}
|
19 |
+
}
|
20 |
+
add_filter('init','load_wp_smtp_lang');
|
21 |
+
|
22 |
+
$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"];
|
29 |
+
$phpmailer->Sender = $phpmailer->From; //Return-Path
|
30 |
+
$phpmailer->AddReplyTo($phpmailer->From,$phpmailer->FromName); //Reply-To
|
31 |
+
$phpmailer->Host = $wsOptions["host"];
|
32 |
+
$phpmailer->SMTPSecure = $wsOptions["smtpsecure"];
|
33 |
+
$phpmailer->Port = $wsOptions["port"];
|
34 |
+
$phpmailer->SMTPAuth = ($wsOptions["smtpauth"]=="yes") ? TRUE : FALSE;
|
35 |
+
$phpmailer->Username = $wsOptions["username"];
|
36 |
+
$phpmailer->Password = $wsOptions["password"];
|
37 |
+
}
|
38 |
+
add_action('phpmailer_init','wp_smtp');
|
39 |
+
|
40 |
+
function wp_smtp_activate(){
|
41 |
+
$wsOptions = array();
|
42 |
+
$wsOptions["from"] = "";
|
43 |
+
$wsOptions["fromname"] = "";
|
44 |
+
$wsOptions["host"] = "";
|
45 |
+
$wsOptions["smtpsecure"] = "";
|
46 |
+
$wsOptions["port"] = "";
|
47 |
+
$wsOptions["smtpauth"] = "yes";
|
48 |
+
$wsOptions["username"] = "";
|
49 |
+
$wsOptions["password"] = "";
|
50 |
+
$wsOptions["deactivate"] = "";
|
51 |
+
add_option("wp_smtp_options",$wsOptions);
|
52 |
+
}
|
53 |
+
register_activation_hook( __FILE__ , 'wp_smtp_activate' );
|
54 |
+
|
55 |
+
if($wsOptions["deactivate"]=="yes"){
|
56 |
+
register_deactivation_hook( __FILE__ , create_function('','delete_option("wp_smtp_options");') );
|
57 |
+
}
|
58 |
+
|
59 |
+
function wp_smtp_settings_link($action_links,$plugin_file){
|
60 |
+
if($plugin_file==plugin_basename(__FILE__)){
|
61 |
+
$ws_settings_link = '<a href="options-general.php?page=' . dirname(plugin_basename(__FILE__)) . '/wp_smtp_admin.php">' . __("Settings") . '</a>';
|
62 |
+
array_unshift($action_links,$ws_settings_link);
|
63 |
+
}
|
64 |
+
return $action_links;
|
65 |
+
}
|
66 |
+
add_filter('plugin_action_links','wp_smtp_settings_link',10,4);
|
67 |
+
|
68 |
+
if(is_admin()){require_once('wp_smtp_admin.php');}
|
69 |
+
|
70 |
+
?>
|
wp_smtp_admin.php
ADDED
@@ -0,0 +1,256 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function wp_smtp_admin(){
|
3 |
+
add_options_page('WP SMTP Options', 'WP SMTP','manage_options', __FILE__, 'wp_smtp_page');
|
4 |
+
}
|
5 |
+
|
6 |
+
function wp_smtp_page(){
|
7 |
+
global $wsOptions;
|
8 |
+
if(isset($_POST['wp_smtp_update'])){
|
9 |
+
$wsOptions = array();
|
10 |
+
$wsOptions["from"] = trim($_POST['wp_smtp_from']);
|
11 |
+
$wsOptions["fromname"] = trim($_POST['wp_smtp_fromname']);
|
12 |
+
$wsOptions["host"] = trim($_POST['wp_smtp_host']);
|
13 |
+
$wsOptions["smtpsecure"] = trim($_POST['wp_smtp_smtpsecure']);
|
14 |
+
$wsOptions["port"] = trim($_POST['wp_smtp_port']);
|
15 |
+
$wsOptions["smtpauth"] = trim($_POST['wp_smtp_smtpauth']);
|
16 |
+
$wsOptions["username"] = trim($_POST['wp_smtp_username']);
|
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 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Options saved.") . '</strong></p></div>';
|
21 |
+
}
|
22 |
+
if(isset($_POST['wp_smtp_test'])){
|
23 |
+
$to = trim($_POST['wp_smtp_to']);
|
24 |
+
$subject = trim($_POST['wp_smtp_subject']);
|
25 |
+
$message = trim($_POST['wp_smtp_message']);
|
26 |
+
$failed = 0;
|
27 |
+
if(!empty($to) && !empty($subject) && !empty($message)){
|
28 |
+
try{
|
29 |
+
$result = wp_mail($to,$subject,$message);
|
30 |
+
}catch(phpmailerException $e){
|
31 |
+
$failed = 1;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
else{
|
35 |
+
$failed = 1;
|
36 |
+
}
|
37 |
+
if(!$failed){
|
38 |
+
if($result==TRUE){
|
39 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Message Sent!","WP-SMTP") . '</strong></p></div>';
|
40 |
+
}
|
41 |
+
else{
|
42 |
+
$failed = 1;
|
43 |
+
}
|
44 |
+
}
|
45 |
+
if($failed){
|
46 |
+
echo '<div id="message" class="updated fade"><p><strong>' . __("Something Error!","WP-SMTP") . '</strong></p></div>';
|
47 |
+
}
|
48 |
+
}
|
49 |
+
?>
|
50 |
+
<div class="wrap">
|
51 |
+
|
52 |
+
<?php screen_icon(); ?>
|
53 |
+
<h2>
|
54 |
+
WP SMTP
|
55 |
+
<span style="margin-left:10px; vertical-align:middle;">
|
56 |
+
<a href="<?php echo plugins_url('screenshot-1.png',__FILE__); ?>" target="_blank"><img src="<?php echo plugins_url('/img/gmail.png',__FILE__); ?>" alt="Gmail" title="Gmail" /></a>
|
57 |
+
<a href="<?php echo plugins_url('screenshot-2.png',__FILE__); ?>" target="_blank"><img src="<?php echo plugins_url('/img/163.png',__FILE__); ?>" alt="163" title="163" /></a>
|
58 |
+
<a href="<?php echo plugins_url('screenshot-3.png',__FILE__); ?>" target="_blank"><img src="<?php echo plugins_url('/img/qq.png',__FILE__); ?>" alt="QQ" title="QQ" /></a>
|
59 |
+
</span>
|
60 |
+
</h2>
|
61 |
+
|
62 |
+
<form action="" method="post" enctype="multipart/form-data" name="wp_smtp_form">
|
63 |
+
|
64 |
+
<table class="form-table">
|
65 |
+
<tr valign="top">
|
66 |
+
<th scope="row">
|
67 |
+
<?php _e('From','WP-SMTP'); ?>
|
68 |
+
</th>
|
69 |
+
<td>
|
70 |
+
<label>
|
71 |
+
<input type="text" name="wp_smtp_from" value="<?php echo $wsOptions["from"]; ?>" size="43" />
|
72 |
+
</label>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
<tr valign="top">
|
76 |
+
<th scope="row">
|
77 |
+
<?php _e('From Name','WP-SMTP'); ?>
|
78 |
+
</th>
|
79 |
+
<td>
|
80 |
+
<label>
|
81 |
+
<input type="text" name="wp_smtp_fromname" value="<?php echo $wsOptions["fromname"]; ?>" size="43" />
|
82 |
+
</label>
|
83 |
+
</td>
|
84 |
+
</tr>
|
85 |
+
<tr valign="top">
|
86 |
+
<th scope="row">
|
87 |
+
<?php _e('Host','WP-SMTP'); ?>
|
88 |
+
</th>
|
89 |
+
<td>
|
90 |
+
<label>
|
91 |
+
<input type="text" name="wp_smtp_host" value="<?php echo $wsOptions["host"]; ?>" size="43" />
|
92 |
+
</label>
|
93 |
+
</td>
|
94 |
+
</tr>
|
95 |
+
<tr valign="top">
|
96 |
+
<th scope="row">
|
97 |
+
<?php _e('SMTP Secure','WP-SMTP'); ?>
|
98 |
+
</th>
|
99 |
+
<td>
|
100 |
+
<label>
|
101 |
+
<input name="wp_smtp_smtpsecure" type="radio" value=""<?php if ($wsOptions["smtpsecure"] == '') { ?> checked="checked"<?php } ?> />
|
102 |
+
None
|
103 |
+
</label>
|
104 |
+
|
105 |
+
<label>
|
106 |
+
<input name="wp_smtp_smtpsecure" type="radio" value="ssl"<?php if ($wsOptions["smtpsecure"] == 'ssl') { ?> checked="checked"<?php } ?> />
|
107 |
+
SSL
|
108 |
+
</label>
|
109 |
+
|
110 |
+
<label>
|
111 |
+
<input name="wp_smtp_smtpsecure" type="radio" value="tls"<?php if ($wsOptions["smtpsecure"] == 'tls') { ?> checked="checked"<?php } ?> />
|
112 |
+
TLS
|
113 |
+
</label>
|
114 |
+
</td>
|
115 |
+
</tr>
|
116 |
+
<tr valign="top">
|
117 |
+
<th scope="row">
|
118 |
+
<?php _e('Port','WP-SMTP'); ?>
|
119 |
+
</th>
|
120 |
+
<td>
|
121 |
+
<label>
|
122 |
+
<input type="text" name="wp_smtp_port" value="<?php echo $wsOptions["port"]; ?>" size="43" />
|
123 |
+
</label>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
<tr valign="top">
|
127 |
+
<th scope="row">
|
128 |
+
<?php _e('SMTP Authentication','WP-SMTP'); ?>
|
129 |
+
</th>
|
130 |
+
<td>
|
131 |
+
<label>
|
132 |
+
<input name="wp_smtp_smtpauth" type="radio" value="no"<?php if ($wsOptions["smtpauth"] == 'no') { ?> checked="checked"<?php } ?> />
|
133 |
+
No
|
134 |
+
</label>
|
135 |
+
|
136 |
+
<label>
|
137 |
+
<input name="wp_smtp_smtpauth" type="radio" value="yes"<?php if ($wsOptions["smtpauth"] == 'yes') { ?> checked="checked"<?php } ?> />
|
138 |
+
Yes
|
139 |
+
</label>
|
140 |
+
</td>
|
141 |
+
</tr>
|
142 |
+
<tr valign="top">
|
143 |
+
<th scope="row">
|
144 |
+
<?php _e('Username','WP-SMTP'); ?>
|
145 |
+
</th>
|
146 |
+
<td>
|
147 |
+
<label>
|
148 |
+
<input type="text" name="wp_smtp_username" value="<?php echo $wsOptions["username"]; ?>" size="43" />
|
149 |
+
</label>
|
150 |
+
</td>
|
151 |
+
</tr>
|
152 |
+
<tr valign="top">
|
153 |
+
<th scope="row">
|
154 |
+
<?php _e('Password','WP-SMTP'); ?>
|
155 |
+
</th>
|
156 |
+
<td>
|
157 |
+
<label>
|
158 |
+
<input type="password" name="wp_smtp_password" value="<?php echo $wsOptions["password"]; ?>" size="43" />
|
159 |
+
</label>
|
160 |
+
</td>
|
161 |
+
</tr>
|
162 |
+
<tr valign="top">
|
163 |
+
<th scope="row">
|
164 |
+
<?php _e('Delete Options','WP-SMTP'); ?>
|
165 |
+
</th>
|
166 |
+
<td>
|
167 |
+
<label>
|
168 |
+
<input type="checkbox" name="wp_smtp_deactivate" value="yes" <?php if($wsOptions["deactivate"]=='yes') echo 'checked="checked"'; ?> />
|
169 |
+
<?php _e('Delete options while deactivate this plugin.','WP-SMTP'); ?>
|
170 |
+
</label>
|
171 |
+
</td>
|
172 |
+
</tr>
|
173 |
+
</table>
|
174 |
+
|
175 |
+
<p class="submit">
|
176 |
+
<input type="hidden" name="wp_smtp_update" value="update" />
|
177 |
+
<input type="submit" class="button-primary" name="Submit" value="<?php _e('Save Changes'); ?>" />
|
178 |
+
</p>
|
179 |
+
|
180 |
+
</form>
|
181 |
+
|
182 |
+
<form action="" method="post" enctype="multipart/form-data" name="wp_smtp_testform">
|
183 |
+
<table class="form-table">
|
184 |
+
<tr valign="top">
|
185 |
+
<th scope="row">
|
186 |
+
<?php _e('To:','WP-SMTP'); ?>
|
187 |
+
</th>
|
188 |
+
<td>
|
189 |
+
<label>
|
190 |
+
<input type="text" name="wp_smtp_to" value="" size="43" />
|
191 |
+
</label>
|
192 |
+
</td>
|
193 |
+
</tr>
|
194 |
+
<tr valign="top">
|
195 |
+
<th scope="row">
|
196 |
+
<?php _e('Subject:','WP-SMTP'); ?>
|
197 |
+
</th>
|
198 |
+
<td>
|
199 |
+
<label>
|
200 |
+
<input type="text" name="wp_smtp_subject" value="" size="43" />
|
201 |
+
</label>
|
202 |
+
</td>
|
203 |
+
</tr>
|
204 |
+
<tr valign="top">
|
205 |
+
<th scope="row">
|
206 |
+
<?php _e('Message:','WP-SMTP'); ?>
|
207 |
+
</th>
|
208 |
+
<td>
|
209 |
+
<label>
|
210 |
+
<textarea type="text" name="wp_smtp_message" value="" cols="40" rows="4"></textarea>
|
211 |
+
</label>
|
212 |
+
</td>
|
213 |
+
</tr>
|
214 |
+
</table>
|
215 |
+
<p class="submit">
|
216 |
+
<input type="hidden" name="wp_smtp_test" value="test" />
|
217 |
+
<input type="submit" class="button-primary" value="<?php _e('Send Test','WP-SMTP'); ?>" />
|
218 |
+
</p>
|
219 |
+
</form>
|
220 |
+
|
221 |
+
<br />
|
222 |
+
<?php $donate_url = plugins_url('/img/paypal_32_32.jpg', __FILE__);?>
|
223 |
+
<?php $paypal_donate_url = plugins_url('/img/btn_donateCC_LG.gif', __FILE__);?>
|
224 |
+
<?php $ali_donate_url = plugins_url('/img/alipay_donate.png', __FILE__);?>
|
225 |
+
<div class="icon32"><img src="<?php echo $donate_url; ?>" alt="Donate" /></div>
|
226 |
+
<h2>Donate</h2>
|
227 |
+
<p>
|
228 |
+
If you find my work useful and you want to encourage the development of more free resources, you can do it by donating.
|
229 |
+
</p>
|
230 |
+
<p>
|
231 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SKA6TPPWSATKG&item_name=BoLiQuan&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="_blank"><img src="<?php echo $paypal_donate_url; ?>" alt="Paypal Donate" title="Paypal" /></a>
|
232 |
+
|
233 |
+
<a href="https://me.alipay.com/boliquan" target="_blank"><img src="<?php echo $ali_donate_url; ?>" alt="Alipay Donate" title="Alipay" /></a>
|
234 |
+
</p>
|
235 |
+
<br />
|
236 |
+
|
237 |
+
<?php $blq_logo_url = plugins_url('/img/blq_32_32.jpg', __FILE__);?>
|
238 |
+
<div class="icon32"><img src="<?php echo $blq_logo_url; ?>" alt="BoLiQuan" /></div>
|
239 |
+
<h2>Related Links</h2>
|
240 |
+
<ul style="margin:0 18px;">
|
241 |
+
<li><a href="http://boliquan.com/wp-smtp/" target="_blank">WP-SMTP (FAQ)</a> | <a href="http://wordpress.org/extend/plugins/wp-smtp/" target="_blank">Download</a></li>
|
242 |
+
<li><a href="http://boliquan.com/wp-anti-spam/" target="_blank">WP Anti Spam</a> | <a href="http://wordpress.org/extend/plugins/wp-anti-spam/" target="_blank">Download</a></li>
|
243 |
+
<li><a href="http://boliquan.com/wp-code-highlight/" target="_blank">WP Code Highlight</a> | <a href="http://wordpress.org/extend/plugins/wp-code-highlight/" target="_blank">Download</a></li>
|
244 |
+
<li><a href="http://boliquan.com/wp-slug-translate/" target="_blank">WP Slug Translate</a> | <a href="http://wordpress.org/extend/plugins/wp-slug-translate/" target="_blank">Download</a></li>
|
245 |
+
<li><a href="http://boliquan.com/yg-share/" target="_blank">YG Share</a> | <a href="http://wordpress.org/extend/plugins/yg-share/" target="_blank">Download</a></li>
|
246 |
+
<li><a href="http://boliquan.com/ylife/" target="_blank">YLife</a> | <a href="http://code.google.com/p/ylife/downloads/list" target="_blank">Download</a></li>
|
247 |
+
<li><a href="http://boliquan.com/" target="_blank">BoLiQuan</a></li>
|
248 |
+
</ul>
|
249 |
+
|
250 |
+
<div style="text-align:center; margin:60px 0 10px 0;">© <?php echo date("Y"); ?> BoLiQuan</div>
|
251 |
+
|
252 |
+
</div>
|
253 |
+
<?php
|
254 |
+
}
|
255 |
+
add_action('admin_menu', 'wp_smtp_admin');
|
256 |
+
?>
|