SMTP
Send mail through SMTP. Made for WordPress., (*1)
Installation
If you're using Composer to manage WordPress, add this plugin to your project's dependencies. Run:, (*2)
composer require trendwerk/smtp 1.0.1
Setup
These settings can be used to setup e-mail through SMTP. They should be defined in wp-config.php
., (*3)
TP_SMTP
, (*4)
If set to true
, will try to use SMTP., (*5)
TP_SMTP_FROM
, (*6)
The 'from' e-mailaddress which will be sent from., (*7)
TP_SMTP_FROM_NAME
, (*8)
The 'from' name which the e-mail will be sent from., (*9)
TP_SMTP_HOST
, (*10)
The hostname of the SMTP server. Example: smtp.gmail.com
., (*11)
TP_SMTP_SECURE
, (*12)
Type of security that will be used. Example: tls., (*13)
TP_SMTP_PORT
, (*14)
The port which will be sent through. Example: 587., (*15)
TP_SMTP_AUTH
, (*16)
Whether to use authentication or not. Can either be true
or false
., (*17)
TP_SMTP_USERNAME
, (*18)
The username to authenticate with., (*19)
TP_SMTP_PASSWORD
, (*20)
The password to authenticate with., (*21)
Example
/**
* SMTP settings
*/
define('TP_SMTP', true);
define('TP_SMTP_FROM', 'you@domain.com');
define('TP_SMTP_FROM_NAME', 'Your Name');
define('TP_SMTP_HOST', 'smtp.gmail.com');
define('TP_SMTP_SECURE', tls);
define('TP_SMTP_PORT', 587);
define('TP_SMTP_AUTH', true);
define('TP_SMTP_USERNAME', 'you@domain.com');
define('TP_SMTP_PASSWORD', 'password');