Version Description
- Removed the "Basic Setup Instructions" section from the settings page. Full setup instructions are now available on the documentation page.
Download this release
Release Info
Developer | naa986 |
Plugin | Gmail SMTP |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- main.php +2 -19
- readme.txt +13 -4
main.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Gmail SMTP
|
4 |
-
Version: 1.1.
|
5 |
Plugin URI: http://wphowto.net/
|
6 |
Author: naa986
|
7 |
Author URI: http://wphowto.net/
|
@@ -16,7 +16,7 @@ if (!defined('ABSPATH')){
|
|
16 |
|
17 |
class GMAIL_SMTP {
|
18 |
|
19 |
-
var $plugin_version = '1.1.
|
20 |
var $phpmailer_version = '5.2.22';
|
21 |
var $plugin_url;
|
22 |
var $plugin_path;
|
@@ -374,24 +374,7 @@ class GMAIL_SMTP {
|
|
374 |
if(!isset($options['disable_ssl_verification'])){
|
375 |
$options['disable_ssl_verification'] = '';
|
376 |
}
|
377 |
-
|
378 |
-
$url = "https://www.google.com/accounts/Logout?continue=https://console.developers.google.com/start/api?id=gmail";
|
379 |
-
$link_text = sprintf(wp_kses(__('Create a new <a target="_blank" href="%s">web application</a> and set its Authorized Redirect URL to the one shown on this page.', 'gmail-smtp'), array('a' => array('href' => array(), 'target' => array()))), esc_url($url));
|
380 |
?>
|
381 |
-
|
382 |
-
<div class="update-nag">
|
383 |
-
<h3><?php _e('Basic Setup Instructions', 'gmail-smtp');?></li></h3>
|
384 |
-
<ol>
|
385 |
-
<li><?php echo $link_text;?></li>
|
386 |
-
<li><?php _e('Once the application is created it will generate a client ID and client secret. Copy them into the fields here.', 'gmail-smtp');?></li>
|
387 |
-
<li><?php _e('Enter your OAuth Email, From Email and From name.', 'gmail-smtp');?></li>
|
388 |
-
<li><?php _e('Select an encryption.', 'gmail-smtp');?></li>
|
389 |
-
<li><?php _e('Enter a port number.', 'gmail-smtp');?></li>
|
390 |
-
<li><?php _e('Save the settings.', 'gmail-smtp');?></li>
|
391 |
-
<li><?php _e('Now you can authorize your app to access the Gmail API by clicking on the Grant Permission button.', 'gmail-smtp');?></li>
|
392 |
-
</ol>
|
393 |
-
</div>
|
394 |
-
|
395 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
396 |
<?php wp_nonce_field('gmail_smtp_general_settings'); ?>
|
397 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Gmail SMTP
|
4 |
+
Version: 1.1.2
|
5 |
Plugin URI: http://wphowto.net/
|
6 |
Author: naa986
|
7 |
Author URI: http://wphowto.net/
|
16 |
|
17 |
class GMAIL_SMTP {
|
18 |
|
19 |
+
var $plugin_version = '1.1.2';
|
20 |
var $phpmailer_version = '5.2.22';
|
21 |
var $plugin_url;
|
22 |
var $plugin_path;
|
374 |
if(!isset($options['disable_ssl_verification'])){
|
375 |
$options['disable_ssl_verification'] = '';
|
376 |
}
|
|
|
|
|
|
|
377 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
379 |
<?php wp_nonce_field('gmail_smtp_general_settings'); ?>
|
380 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: naa986
|
|
3 |
Donate link: https://wphowto.net/
|
4 |
Tags: smtp, gmail, mail, mailer, phpmailer, wp_mail, email, oauth2
|
5 |
Requires at least: 4.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,10 +37,16 @@ Most shared hosting servers have restrictions when it comes to email. Usually em
|
|
37 |
|
38 |
= Gmail SMTP Basic Setup =
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
* Go to the plugin settings (`Settings->Gmail SMTP`).
|
41 |
-
* Create a new web application using the link.
|
42 |
* Set the **Authorized Redirect URL** of the application as the one shown in the settings.
|
43 |
-
*
|
|
|
44 |
* Enter your OAuth Email, From Email and From name.
|
45 |
* Select an encryption.
|
46 |
* Enter a port number.
|
@@ -102,6 +108,9 @@ none
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
105 |
= 1.1.1 =
|
106 |
* Updated the PHPMailer library to version 5.2.22. This release contains a critical security fix for CVE-2017-5223.
|
107 |
|
3 |
Donate link: https://wphowto.net/
|
4 |
Tags: smtp, gmail, mail, mailer, phpmailer, wp_mail, email, oauth2
|
5 |
Requires at least: 4.7
|
6 |
+
Tested up to: 4.8
|
7 |
+
Stable tag: 1.1.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
= Gmail SMTP Basic Setup =
|
39 |
|
40 |
+
* Create a new project in Google Developers Console.
|
41 |
+
* Enable Gmail API in it.
|
42 |
+
* Create credentials (OAuth client ID) to access this API.
|
43 |
+
* Configure the consent screen for the web application.
|
44 |
+
* Enter a **Product Name** and a **Privacy policy URL**.
|
45 |
+
* Once the consent screen is configured, create a web application.
|
46 |
* Go to the plugin settings (`Settings->Gmail SMTP`).
|
|
|
47 |
* Set the **Authorized Redirect URL** of the application as the one shown in the settings.
|
48 |
+
* Finish creating the web app.
|
49 |
+
* Copy the newly created **Client ID** and **Client secret** and paste into the settings area.
|
50 |
* Enter your OAuth Email, From Email and From name.
|
51 |
* Select an encryption.
|
52 |
* Enter a port number.
|
108 |
|
109 |
== Changelog ==
|
110 |
|
111 |
+
= 1.1.2 =
|
112 |
+
* Removed the "Basic Setup Instructions" section from the settings page. Full setup instructions are now available on the documentation page.
|
113 |
+
|
114 |
= 1.1.1 =
|
115 |
* Updated the PHPMailer library to version 5.2.22. This release contains a critical security fix for CVE-2017-5223.
|
116 |
|