0
我的网站WordPress有一个很大的问题,我已经更改了默认邮件WordPress的密码(第一次安装wordpress中使用的邮件)。 现在不可能发送邮件给新用户比登录我的网站。如何更改默认电子邮件WordPress的密码?
如何在WordPress中更改密码,默认邮件? 发送电子邮件的配置文件(SMTP用户和密码)在哪里?
问候。
我的网站WordPress有一个很大的问题,我已经更改了默认邮件WordPress的密码(第一次安装wordpress中使用的邮件)。 现在不可能发送邮件给新用户比登录我的网站。如何更改默认电子邮件WordPress的密码?
如何在WordPress中更改密码,默认邮件? 发送电子邮件的配置文件(SMTP用户和密码)在哪里?
问候。
我已经找到了解决办法
下面是每个设置配置WordPress的发送SMTP电子邮件评论的代码片段例如:
add_action('phpmailer_init', 'send_smtp_email');
function send_smtp_email($phpmailer) {
// Define that we are sending with SMTP
$phpmailer->isSMTP();
// The hostname of the mail server
$phpmailer->Host = "smtp.example.com";
// Use SMTP authentication (true|false)
$phpmailer->SMTPAuth = true;
// SMTP port number - likely to be 25, 465 or 587
$phpmailer->Port = "587";
// Username to use for SMTP authentication
$phpmailer->Username = "yourusername";
// Password to use for SMTP authentication
$phpmailer->Password = "yourpassword";
// Encryption system to use - ssl or tls
$phpmailer->SMTPSecure = "tls";
$phpmailer->From = "[email protected]";
$phpmailer->FromName = "Your Name";
}
要使用这个片段中,你将需要调整根据您的电子邮件服务要求设置。检查您的主机。 该代码片段一经配置,即可添加到您主题的functions.php文件中。
默认情况下不使用smtp细节wp – David
我可以解决这个问题吗? @David – javierZanetti
我真的不知道细节是什么,它是你自己的smtp服务器还是外部服务?或者你使用PHP邮件?或者它只是你已经失去了WordPress的管理帐户的密码,这与发送电子邮件的PHP过程无关? – David