Version Description
- Added New Checkbox to confirm whether to Override "From Name" Property while sending Mails.
- Added New Checkbox to confirm whether to Override "From Email" Property while sending Mails.
Download this release
Release Info
Developer | contact-banker |
Plugin | WP Mail Bank: WordPress SMTP Plugin & Email Logs |
Version | 1.42 |
Comparing to | |
See all releases |
Code changes from version 1.41 to 1.42
- lib/add_mail_class_file.php +11 -7
- readme.txt +26 -22
- views/mail_settings.php +46 -17
- wp-mail-bank.php +18 -9
lib/add_mail_class_file.php
CHANGED
@@ -26,7 +26,7 @@ else
|
|
26 |
global $wpdb;
|
27 |
$wpdb->insert($tbl,$data);
|
28 |
}
|
29 |
-
|
30 |
function update_data($tbl,$data,$where)
|
31 |
{
|
32 |
global $wpdb;
|
@@ -54,7 +54,9 @@ else
|
|
54 |
$email_setup["authentication"] = intval($_REQUEST["ux_rdl_authentication_bank"]);
|
55 |
$email_setup["smtp_username"] = esc_attr($_REQUEST["ux_txt_username"]);
|
56 |
$email_setup["smtp_password"] = htmlspecialchars_decode(esc_attr($_REQUEST["password"]));
|
57 |
-
|
|
|
|
|
58 |
$count_direction = $wpdb->get_var
|
59 |
(
|
60 |
"SELECT count(id) FROM " .wp_mail_bank()
|
@@ -63,14 +65,16 @@ else
|
|
63 |
{
|
64 |
$insert->insert_data(wp_mail_bank(),$email_setup);
|
65 |
}
|
66 |
-
else
|
67 |
{
|
68 |
$where = array();
|
69 |
$where["id"] = 1;
|
70 |
$insert->update_data(wp_mail_bank(),$email_setup,$where);
|
71 |
}
|
|
|
|
|
72 |
die();
|
73 |
-
|
74 |
}
|
75 |
elseif($_REQUEST["param"] == "send_mail")
|
76 |
{
|
@@ -81,10 +85,10 @@ else
|
|
81 |
require_once ABSPATH . WPINC . '/class-smtp.php';
|
82 |
$phpmailer = new PHPMailer( true );
|
83 |
}
|
84 |
-
|
85 |
$phpmailer->SMTPDebug = true;
|
86 |
ob_start();
|
87 |
-
|
88 |
$to = esc_attr($_REQUEST["ux_email_to"]);
|
89 |
$subject=esc_attr($_REQUEST["ux_email_subject"]);
|
90 |
$message=stripslashes(($_REQUEST["message"]));
|
@@ -110,4 +114,4 @@ else
|
|
110 |
}
|
111 |
}
|
112 |
}
|
113 |
-
?>
|
26 |
global $wpdb;
|
27 |
$wpdb->insert($tbl,$data);
|
28 |
}
|
29 |
+
|
30 |
function update_data($tbl,$data,$where)
|
31 |
{
|
32 |
global $wpdb;
|
54 |
$email_setup["authentication"] = intval($_REQUEST["ux_rdl_authentication_bank"]);
|
55 |
$email_setup["smtp_username"] = esc_attr($_REQUEST["ux_txt_username"]);
|
56 |
$email_setup["smtp_password"] = htmlspecialchars_decode(esc_attr($_REQUEST["password"]));
|
57 |
+
$ux_chk_email_from_name = isset($_REQUEST["ux_chk_email_from_name"]) ? $_REQUEST["ux_chk_email_from_name"] :"0";
|
58 |
+
$ux_chk_from_email = isset($_REQUEST["ux_chk_from_email"]) ? $_REQUEST["ux_chk_from_email"] :"0";
|
59 |
+
|
60 |
$count_direction = $wpdb->get_var
|
61 |
(
|
62 |
"SELECT count(id) FROM " .wp_mail_bank()
|
65 |
{
|
66 |
$insert->insert_data(wp_mail_bank(),$email_setup);
|
67 |
}
|
68 |
+
else
|
69 |
{
|
70 |
$where = array();
|
71 |
$where["id"] = 1;
|
72 |
$insert->update_data(wp_mail_bank(),$email_setup,$where);
|
73 |
}
|
74 |
+
update_option("show_from_name_in_email",$ux_chk_email_from_name);
|
75 |
+
update_option("show_from_email_in_email",$ux_chk_from_email);
|
76 |
die();
|
77 |
+
|
78 |
}
|
79 |
elseif($_REQUEST["param"] == "send_mail")
|
80 |
{
|
85 |
require_once ABSPATH . WPINC . '/class-smtp.php';
|
86 |
$phpmailer = new PHPMailer( true );
|
87 |
}
|
88 |
+
|
89 |
$phpmailer->SMTPDebug = true;
|
90 |
ob_start();
|
91 |
+
|
92 |
$to = esc_attr($_REQUEST["ux_email_to"]);
|
93 |
$subject=esc_attr($_REQUEST["ux_email_subject"]);
|
94 |
$message=stripslashes(($_REQUEST["message"]));
|
114 |
}
|
115 |
}
|
116 |
}
|
117 |
+
?>
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: contact-banker, Gallery-Bank
|
3 |
Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
|
4 |
Requires at least: 2.7
|
5 |
-
Tested up to: 4.5
|
6 |
-
Stable tag: 1.
|
7 |
|
8 |
WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
|
9 |
|
@@ -15,7 +15,7 @@ This plugin reconfigures the wp_mail() function nd make it more enhanced to use
|
|
15 |
|
16 |
The Plugin has options to choose between your custom smtp server or the inbuilt phpmailer.
|
17 |
|
18 |
-
###IMPORTANT: If you think you found a bug in WP Mail Bank or have any problem or question concerning WP Mail Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
19 |
|
20 |
###Key Features :
|
21 |
|
@@ -25,7 +25,7 @@ The Plugin has options to choose between your custom smtp server or the inbuilt
|
|
25 |
* Specify Return Path of your Email or Keep it same as your email address.
|
26 |
* Specify Word Wrap at which the string will be wrapped in email per line.
|
27 |
* Specify SMTP Host to be used for sending your emails.
|
28 |
-
* Specify SMTP Port to be used for sending your emails.
|
29 |
* Specify an SMTP username and password.
|
30 |
* Specify Encryption type.
|
31 |
* Specify to use Authentication or disable Authentication.
|
@@ -37,14 +37,14 @@ With this utility you can always check weither you have configured your SMTP Mai
|
|
37 |
|
38 |
> #### ** Default SMTP Ports & Settings **
|
39 |
> * SMTP Server - Non-Encrypted - Port 25 ( or 587 )
|
40 |
-
> * SMTP Server - Secure (TLS) - Port 587
|
41 |
-
> * SMTP Server - Secure (SSL) - Port 465
|
42 |
|
43 |
Note :These SMTP Ports & Settings may be different depending upon your Host Provider. Please contact your Web Server Host for correct details.
|
44 |
|
45 |
> #### ** Googlemail - Gmail SMTP Ports & Settings **
|
46 |
-
> * SMTP Server - Host : smtp.gmail.com - Secure (SSL) - Port 465
|
47 |
-
> * SMTP Server - Host : smtp.gmail.com - Secure (TLS) - Port 587
|
48 |
|
49 |
Note :These SMTP Ports & Settings may be different depending upon your Host Provider. Please contact your Web Server Host for correct details.
|
50 |
|
@@ -191,24 +191,24 @@ Note :These SMTP Ports & Settings may be different depending upon your Host Prov
|
|
191 |
|
192 |
== Installation ==
|
193 |
|
194 |
-
### Minimum requirements.
|
195 |
-
* Wordpress 2.7+
|
196 |
-
* PHP 5.x
|
197 |
-
* MySQL 5.x
|
198 |
|
199 |
-
### Performing a new installation
|
200 |
|
201 |
-
After downloading the ZIP file,
|
202 |
|
203 |
-
1. Log in to the administrator panel.
|
204 |
-
2. Go to Plugins Add > New > Upload.
|
205 |
-
3. Click “Choose file” (“Browse”) and select the downloaded zip file.
|
206 |
|
207 |
-
*For Mac Users*
|
208 |
-
*Go to your Downloads folder and locate the folder with the plugin. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
|
209 |
|
210 |
-
1. Click “Install Now” button.
|
211 |
-
2. Click “Activate Plugin” button for activating the plugin.
|
212 |
|
213 |
If any problem occurs, please contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
214 |
|
@@ -222,6 +222,10 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
|
|
222 |
|
223 |
== Changelog ==
|
224 |
|
|
|
|
|
|
|
|
|
225 |
= 1.41 =
|
226 |
|
227 |
* Few Urgent Bugs Fixed
|
@@ -375,7 +379,7 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
|
|
375 |
|
376 |
= 1.4 =
|
377 |
|
378 |
-
* Added Update Message for New Version
|
379 |
|
380 |
= 1.3 =
|
381 |
|
2 |
Contributors: contact-banker, Gallery-Bank
|
3 |
Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
|
4 |
Requires at least: 2.7
|
5 |
+
Tested up to: 4.5.2
|
6 |
+
Stable tag: 1.42
|
7 |
|
8 |
WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
|
9 |
|
15 |
|
16 |
The Plugin has options to choose between your custom smtp server or the inbuilt phpmailer.
|
17 |
|
18 |
+
###IMPORTANT: If you think you found a bug in WP Mail Bank or have any problem or question concerning WP Mail Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
19 |
|
20 |
###Key Features :
|
21 |
|
25 |
* Specify Return Path of your Email or Keep it same as your email address.
|
26 |
* Specify Word Wrap at which the string will be wrapped in email per line.
|
27 |
* Specify SMTP Host to be used for sending your emails.
|
28 |
+
* Specify SMTP Port to be used for sending your emails.
|
29 |
* Specify an SMTP username and password.
|
30 |
* Specify Encryption type.
|
31 |
* Specify to use Authentication or disable Authentication.
|
37 |
|
38 |
> #### ** Default SMTP Ports & Settings **
|
39 |
> * SMTP Server - Non-Encrypted - Port 25 ( or 587 )
|
40 |
+
> * SMTP Server - Secure (TLS) - Port 587
|
41 |
+
> * SMTP Server - Secure (SSL) - Port 465
|
42 |
|
43 |
Note :These SMTP Ports & Settings may be different depending upon your Host Provider. Please contact your Web Server Host for correct details.
|
44 |
|
45 |
> #### ** Googlemail - Gmail SMTP Ports & Settings **
|
46 |
+
> * SMTP Server - Host : smtp.gmail.com - Secure (SSL) - Port 465
|
47 |
+
> * SMTP Server - Host : smtp.gmail.com - Secure (TLS) - Port 587
|
48 |
|
49 |
Note :These SMTP Ports & Settings may be different depending upon your Host Provider. Please contact your Web Server Host for correct details.
|
50 |
|
191 |
|
192 |
== Installation ==
|
193 |
|
194 |
+
### Minimum requirements.
|
195 |
+
* Wordpress 2.7+
|
196 |
+
* PHP 5.x
|
197 |
+
* MySQL 5.x
|
198 |
|
199 |
+
### Performing a new installation
|
200 |
|
201 |
+
After downloading the ZIP file,
|
202 |
|
203 |
+
1. Log in to the administrator panel.
|
204 |
+
2. Go to Plugins Add > New > Upload.
|
205 |
+
3. Click “Choose file” (“Browse”) and select the downloaded zip file.
|
206 |
|
207 |
+
*For Mac Users*
|
208 |
+
*Go to your Downloads folder and locate the folder with the plugin. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.*
|
209 |
|
210 |
+
1. Click “Install Now” button.
|
211 |
+
2. Click “Activate Plugin” button for activating the plugin.
|
212 |
|
213 |
If any problem occurs, please contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
|
214 |
|
222 |
|
223 |
== Changelog ==
|
224 |
|
225 |
+
= 1.42 =
|
226 |
+
|
227 |
+
* Added New Checkbox to confirm whether to Override "From Name" Property while sending Mails.
|
228 |
+
* Added New Checkbox to confirm whether to Override "From Email" Property while sending Mails.
|
229 |
= 1.41 =
|
230 |
|
231 |
* Few Urgent Bugs Fixed
|
379 |
|
380 |
= 1.4 =
|
381 |
|
382 |
+
* Added Update Message for New Version
|
383 |
|
384 |
= 1.3 =
|
385 |
|
views/mail_settings.php
CHANGED
@@ -24,7 +24,24 @@ else
|
|
24 |
"SELECT * FROM ".wp_mail_bank()
|
25 |
);
|
26 |
$admin_email = get_option( 'admin_email' );
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
?>
|
29 |
<form id="ux_frm_email" class="layout-form" style="max-width:1000px;">
|
30 |
<div id="message" class="top-right message" style="display: none;">
|
@@ -49,6 +66,12 @@ else
|
|
49 |
<p class="wpib-desc-italic"><?php _e("You can specify the name that emails should be sent from.", mail_bank); ?></p>
|
50 |
</div>
|
51 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
<div class="layout-control-group">
|
53 |
<label class="layout-control-label"><?php _e("From Email", mail_bank); ?> : <span class="error">*</span></label>
|
54 |
<div class="layout-controls">
|
@@ -56,6 +79,12 @@ else
|
|
56 |
<p class="wpib-desc-italic"><?php _e("You can specify the email that emails should be sent from.", mail_bank); ?></p>
|
57 |
</div>
|
58 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
<div class="layout-control-group">
|
60 |
<label class="layout-control-label"><?php _e("Mailer Type", mail_bank); ?> : <span class="error">*</span></label>
|
61 |
<div class="layout-controls rdl_mail_bank">
|
@@ -217,7 +246,7 @@ else
|
|
217 |
<input type="radio" style="margin-left: 10px;" id="ux_rdl_smtp_disable" name="ux_rdl_smtp_alive" value="1"/><?php _e("Disable", mail_bank); ?>
|
218 |
<?php
|
219 |
}
|
220 |
-
else
|
221 |
{
|
222 |
?>
|
223 |
<input type="radio" id="ux_rdl_smtp_enable" name="ux_rdl_smtp_alive" value="0" /><?php _e("Enable", mail_bank); ?>
|
@@ -249,50 +278,50 @@ jQuery(document).ready(function()
|
|
249 |
});
|
250 |
|
251 |
jQuery("#ux_frm_email").validate
|
252 |
-
({
|
253 |
rules:
|
254 |
-
{
|
255 |
ux_email_from_name:
|
256 |
-
{
|
257 |
required: true
|
258 |
},
|
259 |
ux_email_from_email:
|
260 |
-
{
|
261 |
required: true,
|
262 |
email: true
|
263 |
},
|
264 |
ux_return_email:
|
265 |
-
{
|
266 |
required: true,
|
267 |
email: true
|
268 |
},
|
269 |
ux_smtp_port:
|
270 |
-
{
|
271 |
required: true,
|
272 |
digits: true
|
273 |
},
|
274 |
ux_smtp_host:
|
275 |
-
{
|
276 |
required: true
|
277 |
},
|
278 |
ux_txt_username:
|
279 |
-
{
|
280 |
required: true
|
281 |
},
|
282 |
ux_rdl_ends:
|
283 |
-
{
|
284 |
required: true
|
285 |
},
|
286 |
ux_rdl_encrption:
|
287 |
-
{
|
288 |
required: true
|
289 |
},
|
290 |
ux_rdl_authentication_bank:
|
291 |
-
{
|
292 |
required: true
|
293 |
},
|
294 |
ux_txt_password:
|
295 |
-
{
|
296 |
required: true
|
297 |
},
|
298 |
ux_word_wrap:
|
@@ -321,9 +350,9 @@ jQuery("#ux_frm_email").validate
|
|
321 |
jQuery("body").append(overlay_opacity);
|
322 |
var overlay = jQuery("<div class=\"loader_opacity\"><div class=\"processing_overlay\"></div></div>");
|
323 |
jQuery("body").append(overlay);
|
324 |
-
|
325 |
var password= encodeURIComponent(jQuery("#ux_txt_password").val());
|
326 |
-
var from_name= encodeURIComponent(jQuery("#ux_email_from_name").val());
|
327 |
jQuery("#form_success_message").css("display","block");
|
328 |
jQuery.post(ajaxurl, jQuery(form).serialize() +"&password="+password+"&from_name="+from_name+"¶m=add_mail_detail&action=add_mail_library", function(data)
|
329 |
{
|
@@ -382,4 +411,4 @@ function smtp_username ()
|
|
382 |
jQuery("#ux_smtp").css("display","block");
|
383 |
}
|
384 |
}
|
385 |
-
</script>
|
24 |
"SELECT * FROM ".wp_mail_bank()
|
25 |
);
|
26 |
$admin_email = get_option( 'admin_email' );
|
27 |
+
$ux_chk_email_from_name = get_option("show_from_name_in_email");
|
28 |
+
if($ux_chk_email_from_name == "1")
|
29 |
+
{
|
30 |
+
$checked = "checked='checked'";
|
31 |
+
}
|
32 |
+
else if($ux_chk_email_from_name == "")
|
33 |
+
{
|
34 |
+
$checked = "checked='checked'";
|
35 |
+
}
|
36 |
+
$ux_chk_from_email = get_option("show_from_email_in_email");
|
37 |
+
if($ux_chk_from_email == "1")
|
38 |
+
{
|
39 |
+
$checked_from_email = "checked='checked'";
|
40 |
+
}
|
41 |
+
else if($ux_chk_from_email == "")
|
42 |
+
{
|
43 |
+
$checked_from_email = "checked='checked'";
|
44 |
+
}
|
45 |
?>
|
46 |
<form id="ux_frm_email" class="layout-form" style="max-width:1000px;">
|
47 |
<div id="message" class="top-right message" style="display: none;">
|
66 |
<p class="wpib-desc-italic"><?php _e("You can specify the name that emails should be sent from.", mail_bank); ?></p>
|
67 |
</div>
|
68 |
</div>
|
69 |
+
<div class="layout-control-group">
|
70 |
+
<label class="layout-control-label"></label>
|
71 |
+
<div class="layout-controls">
|
72 |
+
<input type="checkbox" value="1" name="ux_chk_email_from_name" style="margin-top:2px;" id="ux_chk_email_from_name" <?php echo isset($checked) ? $checked : ""; ?>/><label class="wpib-desc-italic"><?php _e("Yes use this Name to send in emails.", mail_bank); ?></label>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
<div class="layout-control-group">
|
76 |
<label class="layout-control-label"><?php _e("From Email", mail_bank); ?> : <span class="error">*</span></label>
|
77 |
<div class="layout-controls">
|
79 |
<p class="wpib-desc-italic"><?php _e("You can specify the email that emails should be sent from.", mail_bank); ?></p>
|
80 |
</div>
|
81 |
</div>
|
82 |
+
<div class="layout-control-group">
|
83 |
+
<label class="layout-control-label"></label>
|
84 |
+
<div class="layout-controls">
|
85 |
+
<input type="checkbox" value="1" name="ux_chk_from_email" style="margin-top:2px;" id="ux_chk_from_email" <?php echo isset($checked_from_email) ? $checked_from_email : ""; ?>/><label class="wpib-desc-italic"><?php _e("Yes use this From Email to send in emails.", mail_bank); ?></label>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
<div class="layout-control-group">
|
89 |
<label class="layout-control-label"><?php _e("Mailer Type", mail_bank); ?> : <span class="error">*</span></label>
|
90 |
<div class="layout-controls rdl_mail_bank">
|
246 |
<input type="radio" style="margin-left: 10px;" id="ux_rdl_smtp_disable" name="ux_rdl_smtp_alive" value="1"/><?php _e("Disable", mail_bank); ?>
|
247 |
<?php
|
248 |
}
|
249 |
+
else
|
250 |
{
|
251 |
?>
|
252 |
<input type="radio" id="ux_rdl_smtp_enable" name="ux_rdl_smtp_alive" value="0" /><?php _e("Enable", mail_bank); ?>
|
278 |
});
|
279 |
|
280 |
jQuery("#ux_frm_email").validate
|
281 |
+
({
|
282 |
rules:
|
283 |
+
{
|
284 |
ux_email_from_name:
|
285 |
+
{
|
286 |
required: true
|
287 |
},
|
288 |
ux_email_from_email:
|
289 |
+
{
|
290 |
required: true,
|
291 |
email: true
|
292 |
},
|
293 |
ux_return_email:
|
294 |
+
{
|
295 |
required: true,
|
296 |
email: true
|
297 |
},
|
298 |
ux_smtp_port:
|
299 |
+
{
|
300 |
required: true,
|
301 |
digits: true
|
302 |
},
|
303 |
ux_smtp_host:
|
304 |
+
{
|
305 |
required: true
|
306 |
},
|
307 |
ux_txt_username:
|
308 |
+
{
|
309 |
required: true
|
310 |
},
|
311 |
ux_rdl_ends:
|
312 |
+
{
|
313 |
required: true
|
314 |
},
|
315 |
ux_rdl_encrption:
|
316 |
+
{
|
317 |
required: true
|
318 |
},
|
319 |
ux_rdl_authentication_bank:
|
320 |
+
{
|
321 |
required: true
|
322 |
},
|
323 |
ux_txt_password:
|
324 |
+
{
|
325 |
required: true
|
326 |
},
|
327 |
ux_word_wrap:
|
350 |
jQuery("body").append(overlay_opacity);
|
351 |
var overlay = jQuery("<div class=\"loader_opacity\"><div class=\"processing_overlay\"></div></div>");
|
352 |
jQuery("body").append(overlay);
|
353 |
+
|
354 |
var password= encodeURIComponent(jQuery("#ux_txt_password").val());
|
355 |
+
var from_name= encodeURIComponent(jQuery("#ux_email_from_name").val());
|
356 |
jQuery("#form_success_message").css("display","block");
|
357 |
jQuery.post(ajaxurl, jQuery(form).serialize() +"&password="+password+"&from_name="+from_name+"¶m=add_mail_detail&action=add_mail_library", function(data)
|
358 |
{
|
411 |
jQuery("#ux_smtp").css("display","block");
|
412 |
}
|
413 |
}
|
414 |
+
</script>
|
wp-mail-bank.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Wp Mail Bank
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 1.
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
@@ -56,7 +56,7 @@ function backend_plugin_css_scripts_mail_bank()
|
|
56 |
wp_enqueue_style("wp-mail-bank.css", plugins_url("/assets/css/wp-mail-bank.css",__FILE__));
|
57 |
}
|
58 |
|
59 |
-
function wp_mail_bank_configure($phpmailer)
|
60 |
{
|
61 |
global $wpdb;
|
62 |
$data=$wpdb->get_row
|
@@ -64,9 +64,18 @@ function wp_mail_bank_configure($phpmailer)
|
|
64 |
"SELECT * FROM ".wp_mail_bank()
|
65 |
);
|
66 |
$mail_type = $data->mailer_type;
|
67 |
-
$phpmailer->Mailer = $data->mailer_type == 0 ? "smtp" : "mail";
|
68 |
-
$
|
69 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
$phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $data->from_email;
|
71 |
$phpmailer->WordWrap = $data->word_wrap;
|
72 |
$phpmailer->SMTPOptions = array
|
@@ -79,7 +88,7 @@ function wp_mail_bank_configure($phpmailer)
|
|
79 |
)
|
80 |
);
|
81 |
if($data->mailer_type == 0)
|
82 |
-
{
|
83 |
switch($data->encryption)
|
84 |
{
|
85 |
case 0 :
|
@@ -168,7 +177,7 @@ function add_mail_icon($meta = TRUE)
|
|
168 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />WP Mail Bank"),
|
169 |
"href" => __(site_url() . "/wp-admin/admin.php?page=smtp_mail"),
|
170 |
));
|
171 |
-
|
172 |
$wp_admin_bar->add_menu(array(
|
173 |
"parent" => "mail_bank",
|
174 |
"id" => "Settings",
|
@@ -219,7 +228,7 @@ function add_mail_icon($meta = TRUE)
|
|
219 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Wp Mail Bank"),
|
220 |
"href" => __(site_url() . "/wp-admin/admin.php?page=mail_settings"),
|
221 |
));
|
222 |
-
|
223 |
$wp_admin_bar->add_menu(array(
|
224 |
"parent" => "mail_bank",
|
225 |
"id" => "Settings",
|
@@ -270,7 +279,7 @@ function add_mail_icon($meta = TRUE)
|
|
270 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Wp Mail Bank"),
|
271 |
"href" => __(site_url() . "/wp-admin/admin.php?page=mail_settings"),
|
272 |
));
|
273 |
-
|
274 |
$wp_admin_bar->add_menu(array(
|
275 |
"parent" => "mail_bank",
|
276 |
"id" => "Settings",
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 1.42
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
56 |
wp_enqueue_style("wp-mail-bank.css", plugins_url("/assets/css/wp-mail-bank.css",__FILE__));
|
57 |
}
|
58 |
|
59 |
+
function wp_mail_bank_configure($phpmailer)
|
60 |
{
|
61 |
global $wpdb;
|
62 |
$data=$wpdb->get_row
|
64 |
"SELECT * FROM ".wp_mail_bank()
|
65 |
);
|
66 |
$mail_type = $data->mailer_type;
|
67 |
+
$phpmailer->Mailer = $data->mailer_type == 0 ? "smtp" : "mail";
|
68 |
+
$ux_chk_email_from_name = get_option("show_from_name_in_email");
|
69 |
+
if( $ux_chk_email_from_name == "" || $ux_chk_email_from_name == "1")
|
70 |
+
{
|
71 |
+
$phpmailer->FromName = stripslashes(htmlspecialchars_decode($data->from_name, ENT_QUOTES));
|
72 |
+
}
|
73 |
+
$ux_chk_from_email = get_option("show_from_email_in_email");
|
74 |
+
if( $ux_chk_from_email == "" || $ux_chk_from_email == "1")
|
75 |
+
{
|
76 |
+
$phpmailer->From = $data->from_email;
|
77 |
+
}
|
78 |
+
|
79 |
$phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $data->from_email;
|
80 |
$phpmailer->WordWrap = $data->word_wrap;
|
81 |
$phpmailer->SMTPOptions = array
|
88 |
)
|
89 |
);
|
90 |
if($data->mailer_type == 0)
|
91 |
+
{
|
92 |
switch($data->encryption)
|
93 |
{
|
94 |
case 0 :
|
177 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />WP Mail Bank"),
|
178 |
"href" => __(site_url() . "/wp-admin/admin.php?page=smtp_mail"),
|
179 |
));
|
180 |
+
|
181 |
$wp_admin_bar->add_menu(array(
|
182 |
"parent" => "mail_bank",
|
183 |
"id" => "Settings",
|
228 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Wp Mail Bank"),
|
229 |
"href" => __(site_url() . "/wp-admin/admin.php?page=mail_settings"),
|
230 |
));
|
231 |
+
|
232 |
$wp_admin_bar->add_menu(array(
|
233 |
"parent" => "mail_bank",
|
234 |
"id" => "Settings",
|
279 |
height=\"25\" style=\"vertical-align:text-top; margin-right:5px;\" />Wp Mail Bank"),
|
280 |
"href" => __(site_url() . "/wp-admin/admin.php?page=mail_settings"),
|
281 |
));
|
282 |
+
|
283 |
$wp_admin_bar->add_menu(array(
|
284 |
"parent" => "mail_bank",
|
285 |
"id" => "Settings",
|