In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the correct configuration of WordPress mail SMTP method, the article introduces in great detail, has a certain reference value, interested friends must read it!
By default, most of the host space can not send mail normally, resulting in user registration can not send mail, unable to retrieve the password, etc., so it is necessary to use the third-party mail server SMTP instead of the WordPress default mail () function.
I believe many webmasters have seen the method of configuring WordPress email SMTP flying everywhere on the Internet, but after trying it, it is always unsuccessful, for example:
/ / configure email add_action ('phpmailer_init',' mail_smtp'); function mail_smtp ($phpmailer) {$phpmailer- > FromName = 'Mockingbird'; / / Sender nickname $phpmailer- > Host = 'smtp.qq.com'; / / mailbox SMTP server $phpmailer- > Port = 465; / / SMTP port, no need to change $phpmailer- > Username =' 123456 mailqq.compositions; / / email account $phpmailer- > Password = 'aabbccddffgg' / / enter the authorization code generated by the mailbox here, which is not the mailbox login password $phpmailer- > From = '123456roomqq.compose; / / the mailbox account $phpmailer- > SMTPAuth = true;$phpmailer- > SMTPSecure =' ssl'; / / port 25 is left blank, ssl at 465, there is no need to change $phpmailer- > IsSMTP ();}
Most of the instructions that provide the configuration code do not clearly state that the password in the $phpmailer- > Password configuration on line 8 is the mailbox third-party authorization code, not the mailbox login password, which is the key to not sending a successful email.
The following is just to QQ Mail as an example, a brief description of how to open the mailbox IMAP/SMTP service and obtain a third-party authorization code.
First, add the above code to the current theme function template functions.php, and modify the relevant information in it.
Enable the IMAP/SMTP service
Log in to your QQ Mail, click, set up your → account, find the "POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV service" setting option, and open the email "IMAP/SMTP service".
Get authorization code
Click "generate Authorization Code" below and send SMS as required: configure the email client to the specified number, and then click "I have sent", which will automatically generate an authorization code. Remember this authorization code, because it is only displayed once. If you don't remember that you can only send a text message again, just fill in the authorization code in the configuration information.
I have only tried QQ Mail and 126. other email methods are similar.
Note: it seems that all mailbox ports can be set to 465 and support ssl encryption.
The above is all the contents of the method of correctly configuring WordPress email SMTP. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.