开发者 |
tivnet
tivnetinc |
---|---|
更新时间 | 2020年9月16日 21:47 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 5.5 |
版权: | GPL-3.0 |
版权网址: | 版权信息 |
wp-config.php
or similar), so they are not accidentally copied from development to production.
To check the configuration settings, and to send a test email, go to Tools->TIVWP Email in admin.
$GLOBALS['TIVWP']['EMAIL'] = array( // Using GMail SMTP 'SMTP_ENABLED' => true, 'SMTP_HOST' => 'smtp.gmail.com', 'SMTP_PORT' => '587', 'SMTP_SECURE' => 'tls', 'SMTP_AUTH' => true, 'SMTP_USER' => 'me@gmail.com', 'SMTP_PASSWORD' => '*****', // Forcing all email sent to ... // (better if not the same as the SMTP_USER) 'MAIL_TO' => 'me@hotmail.com', 'SMTP_OPTIONS' => array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ) ), );
SMTP_OPTIONS
.