2017年11月7日 星期二

[Wordpress] 從 Gmail 的 SMTP 寄信


安裝 wp-mail-smtp
https://wordpress.org/plugins/wp-mail-smtp/

注意要降低 gmail 安全性才能使用
https://myaccount.google.com/lesssecureapps

有點麻煩, 要先登入到管理介面
> https://gsuite.google.com/products/gmail/
> https://admin.google.com/AdminHome?pli=1&fral=1
> https://admin.google.com/AdminHome#SecuritySettings:exp=1&flyout=basic

> Less secure apps   
Some apps use less secure sign-in technology, which makes accounts more vulnerable. You can choose to deny access for these apps, which we recommend, or choose to allow access despite the risks.
Go to settings for less secure apps ››

> Less secure apps
Locally applied
Disable access to less secure apps for all users (Recommended)
Allow users to manage their access to less secure apps
===> 選這個才行 Enforce access to less secure apps for all users (Not Recommended)

沒有留言: