Comments (11)
回复邮件通知,正确配置之后:
若在评论框回复匿名评论者,对方会有回复邮件通知。
回复登录用户则没,因 Disqus 自己有邮件通知。
from disqus-php-api.
用腾讯的免费企业邮 试了几次,匿名评论者目前没收到邮件。
下面的设置应该是对的。两个 SMTP_HOST 都启用过了。
define('SITE_NAME', 'https://zhoucaiqi.com');
define('SMTP_SECURE', 'ssl');
define('SMTP_HOST', 'hwsmtp.exmail.qq.com');
// define('SMTP_HOST', 'smtp.exmail.qq.com');
define('SMTP_PORT', 465);
define('SMTP_USERNAME', '完整的email地址');
define('SMTP_PASSWORD', '已填写');
from disqus-php-api.
@choicky 可能是因为你的服务器是 HTTPS,请求需要验证证书。
目前已设置禁止验证,获取最新的 postcomment.php
文件,现在应该行。
from disqus-php-api.
@fooleap 刚才更新了,匿名评论者目前依然没有收到邮件通知。
我记得 Ghost v1.x 版本时,是推荐使用 mailgun 之类的第三方来发邮件的,那时候邮件都是正常的。你有空也可以参考下 :)
对了,同一个服务器上,我搭建了一个 wordpress ,印象中 wordpress 的邮件通知是正常的。所以可以参考有一下 wordpress 的代码?
from disqus-php-api.
那现在可能要调试看看,postcomment.php
文件第 62 行中的 URL 换成绝对地址试试看。
之前为了方便就用 PHPMailer,Mailgun 没了解过,有时间看看,WP 好像是自带就有邮件模块。
from disqus-php-api.
@choicky 刚刚用你的 sendemail
接口做测试,成功发送了回复邮件。
from disqus-php-api.
@fooleap 我看到你的“测试”评论了,我回复了你,你的QQ信箱有收到吗?
如果你没有收到,难道是我的 smtp 设置有问题?例如,不能启用 ssl,必须使用非 ssl 的smtp 设置?
from disqus-php-api.
你的回复我没收到,反而我用 js 发请求收到了,感觉有可能是上面说的那个 url 的问题。
from disqus-php-api.
第62行的 url 改为绝对路径,是指 https:// 开头的,还是 服务器的存储地址(以/开头的)?
from disqus-php-api.
https 开头的,就是网址。
from disqus-php-api.
改为了 CURLOPT_URL => 'https://disqus-zhoucaiqi-com.fei-xing.com/api/sendemail.php',
但目前依然收不到。不知道是咋回事了。
from disqus-php-api.
Related Issues (20)
- 点击登录后弹出Invalid Request: Invalid parameter: redirect_uri (should match predefined callback URI) HOT 1
- get_ip函数不支持IPv6地址 HOT 1
- 无法显示被隐藏的回复
- now.sh v2 不再支持docker部署,能否更新以兼容v2? HOT 2
- 无法正确在now.json部署 HOT 1
- 添加now.json缺失的文件 HOT 1
- 加载错误 HOT 1
- 如何关掉上传图片功能,直接改js? HOT 1
- 匿名头像 `noavatar92.png` 404 Not Found HOT 1
- heroku上成功部署,也能加载demo,但是在hexo网站上一直显示“正在初始化”的动画 HOT 2
- Nginx上一直显示“正在初始化” HOT 1
- 有没有办法部署到阿里云的函数计算上 HOT 3
- 建议加入延迟加载的功能 HOT 1
- App 设置问题?
- 提交失败,请稍后重试,错误代码:12 HOT 1
- 翻墙可以访问但是墙内无法访问
- 使用简易评论框时无法登录
- 一直转圈,显示正在初始化,右键检查错误iDisqus.min.js:11 HOT 2
- 查询字符串的访问链接会创建新的 thread
- 部署失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from disqus-php-api.