Title: G-SMTP
Author: The Generation
Published: <strong>2022 年 5 月 14 日</strong>
Last modified: 2025 年 6 月 30 日

---

搜索插件

![](https://ps.w.org/g-smtp/assets/banner-772x250.jpg?rev=2724830)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/g-smtp/assets/icon-128x128.gif?rev=2724554)

# G-SMTP

 作者：[The Generation](https://profiles.wordpress.org/thegeneration/)

[下载](https://downloads.wordpress.org/plugin/g-smtp.1.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/g-smtp/#description)
 * [评价](https://cn.wordpress.org/plugins/g-smtp/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/g-smtp/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/g-smtp/#developers)

 [支持](https://wordpress.org/support/plugin/g-smtp/)

## 描述

G-SMTP is a next Generation SMTP-plugin built to last. This is a plugin that helps
you send your e-mails via SMTP, and only that.

All the SMTP-details are setup as constants via wp-config.php, making it stable 
and does not have to rely on the database for the e-mails to be delivered.

## 屏幕截图

[⌊Overview of settings page where you can verify the connection⌉⌊Overview of settings
page where you can verify the connection⌉[

Overview of settings page where you can verify the connection

[⌊Configuration page where you can generate constants to put in your wp-config.php⌉⌊
Configuration page where you can generate constants to put in your wp-config.php⌉[

Configuration page where you can generate constants to put in your wp-config.php

## 安装

 1. Install the plugin either through your web browser in the WordPress admin panel
    or manually through SFTP/FTP.
 2. Activate the plugin
 3. Setup the constants in `wp-config.php` as described below or use the configuration
    page at **Settings > G-SMTP > Config** to generate them
 4. Test the settings by going to **Settings > G-SMTP** and sending a test e-mail

#### Constants

These are the base constants needed to make the plugin work:

    ```
    define( 'G_SMTP_ENABLED', true );
    define( 'G_SMTP_HOST', 'my-smtp-host.com' );
    define( 'G_SMTP_PORT', 25 );
    ```

Below, you will find information regarding the different constants available:

**Activated/deactivated (mandatory)** This sets if the SMTP-connection should be
enabled or not. It can be used for debugging-purposes and should be left as true
generally.

    ```
    define( 'G_SMTP_ENABLED', true );
    ```

**Host (mandatory)** Here you enter which domain/IP-address where the SMTP-service
is hosted.

    ```
    define( 'G_SMTP_HOST', 'my-smtp-host.com' );
    ```

**Port (mandatory)** Here you enter what port the SMTP-service is hosted on. Generally
the ports `25` (non encrypted), `465` (SSL) and `587` (TLS) are used.

    ```
    define( 'G_SMTP_PORT', 25 );
    ```

**Encryption (optional)** This defines if an encrypted connection should be used
when connecting to the SMTP-service. Normally you should enter `ssl` if the port
is `465`, `tls` if the port is `587` and leave it empty if the port is `25`.

    ```
    // TLS connections (port 587)
    define( 'G_SMTP_ENCRYPTION', 'tls' );

    // SSL connections (port 465)
    define( 'G_SMTP_ENCRYPTION', 'ssl' );
    ```

**Username and password (optional)** If the SMTP-service requires authentication
then you must enter username and password.

    ```
    define( 'G_SMTP_USER', 'username' );
    define( 'G_SMTP_PASSWORD', 'password123' );
    ```

**Sender, name and e-mail (optional)** If you want to override the sender name and
e-mail address you can enter these settings.

    ```
    define( 'G_SMTP_FROM_NAME', 'Sender name' );
    define( 'G_SMTP_FROM_ADDRESS', 'sender@sender.com' );
    ```

This overrides the **default settings**, if plugins have other settings then those
will be used.

If you want name and e-mail address to always be overriden then you can use this
setting:

    ```
    define( 'G_SMTP_FORCE_FROM', true );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「G-SMTP」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ The Generation ](https://profiles.wordpress.org/thegeneration/)

「G-SMTP」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/g-smtp/contributors)
为本插件所做的贡献。

[帮助将「G-SMTP」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/g-smtp)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/g-smtp/)，查看[SVN仓库](https://plugins.svn.wordpress.org/g-smtp/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/g-smtp/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/g-smtp/)。

## 更新日志

#### 1.1.5

 * Added compatibility with WordPress 6.8.

#### 1.1.4

 * Feature: Tested with WordPress 6.5.

#### 1.1.3

 * Feature: Tested with WordPress 6.4.

#### 1.1.2

 * Tested with WordPress 6.0.

#### 1.1.1

 * Change to G_SMTP_USER from G_SMTP_USERNAME when generating config through the
   wizard

#### 1.1.0

 * Added ability to generate config for wp-config.php on the setting page.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.1.5**
 *  最后更新：**11 月前**
 *  活跃安装数量 **300+**
 *  已测试的最高版本为 **6.5.8**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/g-smtp/) 、 [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/g-smtp/)、
   [English (US)](https://wordpress.org/plugins/g-smtp/) 和 [Swedish](https://sv.wordpress.org/plugins/g-smtp/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/g-smtp)
 * 标签
 * [smtp](https://cn.wordpress.org/plugins/tags/smtp/)
 *  [高级视图](https://cn.wordpress.org/plugins/g-smtp/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/g-smtp/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/g-smtp/reviews/)

## 贡献者

 *   [ The Generation ](https://profiles.wordpress.org/thegeneration/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/g-smtp/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://thegeneration.se/)