Version Description
Download this release
Release Info
Developer | machothemes |
Plugin | Check Email |
Version | 0.6.1 |
Comparing to | |
See all releases |
Code changes from version 0.6.0 to 0.6.1
- check-email.php +50 -20
- readme.txt +4 -3
check-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Check Email
|
4 |
* Description: Check email allows you to test if your WordPress installation is sending emails correctly.
|
5 |
* Author: MachoThemes
|
6 |
-
* Version: 0.6.
|
7 |
* Author URI: https://www.machothemes.com/
|
8 |
* License: GPLv3 or later
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -11,12 +11,8 @@
|
|
11 |
* Text Domain: check-email
|
12 |
* Domain Path: /languages
|
13 |
*
|
14 |
-
* Copyright 2015-
|
15 |
-
* Copyright
|
16 |
-
*
|
17 |
-
* Original Plugin URI: https://modula.greentreelabs.net/
|
18 |
-
* Original Author URI: https://greentreelabs.net
|
19 |
-
* Original Author: https://profiles.wordpress.org/greentreelabs/
|
20 |
*
|
21 |
* NOTE:
|
22 |
* Chris Taylor transferred ownership rights on: 2020-06-19 07:52:03 GMT when ownership was handed over to MachoThemes
|
@@ -73,16 +69,35 @@ function checkemail_add_css() {
|
|
73 |
if ( isset( $_GET["page"] ) && $_GET["page"] == "checkemail" ) {
|
74 |
echo '
|
75 |
<style type="text/css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
#checkemail label {
|
77 |
-
|
78 |
-
|
79 |
}
|
80 |
#checkemail .text {
|
81 |
width: 30em;
|
82 |
}
|
83 |
-
|
84 |
-
|
85 |
-
}
|
|
|
86 |
</style>
|
87 |
';
|
88 |
}
|
@@ -96,6 +111,13 @@ function checkemail() {
|
|
96 |
$from_email = apply_filters( 'wp_mail_from', $current_user->user_email );
|
97 |
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
echo '
|
100 |
<div id="checkemail" class="wrap">
|
101 |
';
|
@@ -113,14 +135,18 @@ function checkemail() {
|
|
113 |
|
114 |
echo '
|
115 |
<h2>' . __( "Check Email" ) . '</h2>
|
|
|
116 |
|
117 |
-
<h3>' . __( "Current mail settings", "check-email" ) . '</h3>
|
118 |
-
<
|
119 |
-
<
|
120 |
-
<
|
121 |
-
<
|
122 |
-
|
|
|
|
|
123 |
<h3>' . __( "Send a test email", "check-email" ) . '</h3>
|
|
|
124 |
<form action="tools.php?page=checkemail" method="post">
|
125 |
<p><label for="checkemail_to">' . __( "Send test email to:", "check-email" ) . '</label>
|
126 |
<input type="text" name="checkemail_to" id="checkemail_to" class="text"';
|
@@ -128,6 +154,7 @@ function checkemail() {
|
|
128 |
echo ' value="' . esc_attr( $_POST["checkemail_to"] ) . '"';
|
129 |
}
|
130 |
echo ' /></p>
|
|
|
131 |
<p><label for="checkemail_autoheaders">' . __( "Use standard headers", "check-email" ) . '</label>
|
132 |
<input type="radio" id="checkemail_autoheaders" name="checkemail_headers" value="auto"';
|
133 |
if ( !isset($_POST["checkemail_headers"]) || $_POST["checkemail_headers"] == "auto" ){
|
@@ -152,7 +179,9 @@ Content-Type: text/plain; charset="' . get_option( 'blog_charset' ) . '"</pre>
|
|
152 |
echo ' class="checkemail-hide"';
|
153 |
}
|
154 |
echo '>
|
155 |
-
|
|
|
|
|
156 |
<p><label for="checkemail_mime">' . __( "MIME Version", "check-email" ) . '</label>
|
157 |
<input type="text" name="checkemail_mime" id="checkemail_mime" value="';
|
158 |
if ( isset( $_POST["checkemail_mime"] ) ) {
|
@@ -195,7 +224,8 @@ Content-Type: text/plain; charset="' . get_option( 'blog_charset' ) . '"</pre>
|
|
195 |
}
|
196 |
echo ' /> \r\n</p>
|
197 |
</div>
|
198 |
-
<p
|
|
|
199 |
<input type="submit" name="checkemail_go" id="checkemail_go" class="button-primary" value="' . __( "Send test email", "check-email" ) . '" /></p>
|
200 |
';
|
201 |
wp_nonce_field( 'checkemail' );
|
3 |
* Plugin Name: Check Email
|
4 |
* Description: Check email allows you to test if your WordPress installation is sending emails correctly.
|
5 |
* Author: MachoThemes
|
6 |
+
* Version: 0.6.1
|
7 |
* Author URI: https://www.machothemes.com/
|
8 |
* License: GPLv3 or later
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
* Text Domain: check-email
|
12 |
* Domain Path: /languages
|
13 |
*
|
14 |
+
* Copyright 2015-2020 Chris Taylor chris@stillbreathing.co.uk
|
15 |
+
* Copyright 2020 MachoThemes office@machothemes.com
|
|
|
|
|
|
|
|
|
16 |
*
|
17 |
* NOTE:
|
18 |
* Chris Taylor transferred ownership rights on: 2020-06-19 07:52:03 GMT when ownership was handed over to MachoThemes
|
69 |
if ( isset( $_GET["page"] ) && $_GET["page"] == "checkemail" ) {
|
70 |
echo '
|
71 |
<style type="text/css">
|
72 |
+
#checkemail {
|
73 |
+
background-color: #FFF;
|
74 |
+
border: 1px solid #DDD;
|
75 |
+
max-width: 50%;
|
76 |
+
padding: 30px;
|
77 |
+
float: left;
|
78 |
+
}
|
79 |
+
#CKE_banner {
|
80 |
+
float: right;
|
81 |
+
max-width: 30%;
|
82 |
+
padding: 25px;
|
83 |
+
background: #f5fbff;
|
84 |
+
border: 1px solid #CCC;
|
85 |
+
min-height: 150px;
|
86 |
+
margin-right: 5%;
|
87 |
+
text-align: center;
|
88 |
+
vertical-align: middle;
|
89 |
+
}
|
90 |
#checkemail label {
|
91 |
+
display: inline-block;
|
92 |
+
width: 150px;
|
93 |
}
|
94 |
#checkemail .text {
|
95 |
width: 30em;
|
96 |
}
|
97 |
+
|
98 |
+
#checkemail ul { padding-left: 30px; list-style: square;}
|
99 |
+
#autoheaders { background-color: #FAFAFA; border: 1px solid #CCC; padding: 10px 15px; }
|
100 |
+
|
101 |
</style>
|
102 |
';
|
103 |
}
|
111 |
$from_email = apply_filters( 'wp_mail_from', $current_user->user_email );
|
112 |
$from_name = apply_filters( 'wp_mail_from_name', $from_name );
|
113 |
|
114 |
+
echo '<div id="CKE_banner">
|
115 |
+
<h2>👉 '. __('Suggest a new feature!', 'check-email') . '👈 </h2>
|
116 |
+
<p>'. __('Help us build the next set of features for Check Email. Tell us what you think and we will make it happen!', 'check-email') . '</p>
|
117 |
+
<a target="_blank" rel="noreferrer noopener" href="https://bit.ly/33QzqBU" class="button button-primary button-hero"> ' . __('Click here', 'check-email') . '</a>
|
118 |
+
</div>
|
119 |
+
'; //end CKE_Banner code
|
120 |
+
|
121 |
echo '
|
122 |
<div id="checkemail" class="wrap">
|
123 |
';
|
135 |
|
136 |
echo '
|
137 |
<h2>' . __( "Check Email" ) . '</h2>
|
138 |
+
<hr />
|
139 |
|
140 |
+
<h3>' . __( "Current mail settings:", "check-email" ) . '</h3>
|
141 |
+
<ul>
|
142 |
+
<li>' . __( "SendMail path (UNIX):", "check-email" ) . '<strong> ' . ini_get("sendmail_path") . '</strong></li>
|
143 |
+
<li>' . __( "SMTP server (Windows):", "check-email" ) . '<strong> ' . ini_get("SMTP") . '</strong></li>
|
144 |
+
<li>' . __( "SMTP port (Windows):", "check-email" ) . '<strong> ' . ini_get("smtp_port") . '</strong></li>
|
145 |
+
<li>' . __( "Add X header:", "check-email" ) . '<strong> ' . ini_get("mail.add_x_header") . '</strong></li>
|
146 |
+
</ul>
|
147 |
+
<br />
|
148 |
<h3>' . __( "Send a test email", "check-email" ) . '</h3>
|
149 |
+
<hr />
|
150 |
<form action="tools.php?page=checkemail" method="post">
|
151 |
<p><label for="checkemail_to">' . __( "Send test email to:", "check-email" ) . '</label>
|
152 |
<input type="text" name="checkemail_to" id="checkemail_to" class="text"';
|
154 |
echo ' value="' . esc_attr( $_POST["checkemail_to"] ) . '"';
|
155 |
}
|
156 |
echo ' /></p>
|
157 |
+
<br />
|
158 |
<p><label for="checkemail_autoheaders">' . __( "Use standard headers", "check-email" ) . '</label>
|
159 |
<input type="radio" id="checkemail_autoheaders" name="checkemail_headers" value="auto"';
|
160 |
if ( !isset($_POST["checkemail_headers"]) || $_POST["checkemail_headers"] == "auto" ){
|
179 |
echo ' class="checkemail-hide"';
|
180 |
}
|
181 |
echo '>
|
182 |
+
<br />
|
183 |
+
<h3>' . __( "Set your custom headers below: ", "check-email" ) . '</h3>
|
184 |
+
<hr />
|
185 |
<p><label for="checkemail_mime">' . __( "MIME Version", "check-email" ) . '</label>
|
186 |
<input type="text" name="checkemail_mime" id="checkemail_mime" value="';
|
187 |
if ( isset( $_POST["checkemail_mime"] ) ) {
|
224 |
}
|
225 |
echo ' /> \r\n</p>
|
226 |
</div>
|
227 |
+
<p>
|
228 |
+
<label for="checkemail_go" class="checkemail-hide">' . __( "Send", "check-email" ) . '</label>
|
229 |
<input type="submit" name="checkemail_go" id="checkemail_go" class="button-primary" value="' . __( "Send test email", "check-email" ) . '" /></p>
|
230 |
';
|
231 |
wp_nonce_field( 'checkemail' );
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Check Email ===
|
2 |
Contributors: machothemes, silkalns, giucu91
|
3 |
Tags: check, test, email, smtp, pop, send, delivery
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 0.6.
|
7 |
|
8 |
Check email allows you to test if your WordPress installation is sending emails correctly by sending a test email to an address of your choice. Allows overriding of email headers and carbon copying to another address.
|
9 |
|
@@ -28,6 +28,7 @@ The link to access the tool is in the "Tools" menu.
|
|
28 |
Someone using one of my other plugins had trouble with emails not being sent. I knocked this together to help him (and anyone else).
|
29 |
|
30 |
== Changelog ==
|
|
|
31 |
0.6.0 Fixed loopback error.
|
32 |
0.5.7 Added support for the wp_mail_from filter
|
33 |
0.5.6 Tested with WordPress 5.1.1
|
1 |
=== Check Email ===
|
2 |
Contributors: machothemes, silkalns, giucu91
|
3 |
Tags: check, test, email, smtp, pop, send, delivery
|
4 |
+
Requires at least: 5.0
|
5 |
+
Tested up to: 5.5
|
6 |
+
Stable tag: 0.6.1
|
7 |
|
8 |
Check email allows you to test if your WordPress installation is sending emails correctly by sending a test email to an address of your choice. Allows overriding of email headers and carbon copying to another address.
|
9 |
|
28 |
Someone using one of my other plugins had trouble with emails not being sent. I knocked this together to help him (and anyone else).
|
29 |
|
30 |
== Changelog ==
|
31 |
+
0.6.1 Added feedback form. Improved CSS backend.
|
32 |
0.6.0 Fixed loopback error.
|
33 |
0.5.7 Added support for the wp_mail_from filter
|
34 |
0.5.6 Tested with WordPress 5.1.1
|