YesknStudio/vmoex-framework

邮箱支持 sendgrid

ZBrettonYe opened this issue · 11 comments

可以支持一下sendgrid 的邮箱设置吗?

使用sendgird 出现这个报错
Address in mailbox given [apikey] does not comply with RFC 2822, 3.6.2.

sendgrid 使用smtp

Server smtp.sendgrid.net
Ports 25, 587(for unencrypted/TLS connections)465(for SSL connections)
25, 587 (for unencrypted/TLS connections)
465 (for SSL connections)
Username apikey
Password YOUR_API_KEY

他们提供的方式还是要加代码,算了,还需要解读一遍大佬的代码。我还是去看看用其他email服务好了

很奇怪,我试了 qq企业邮箱,和阿里云邮箱服务。 发激活验证码到QQ邮箱,都没有成功...

log文件是否有报错日志呢?

log里
[2019-05-26 13:10:37] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /.well-known/pki-validation/fileauth.txt"" at /www/wwwroot/52hentai.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php line 139 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): No route found for "GET /.well-known/pki-validation/fileauth.txt" at /www/wwwroot/52hentai.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php:139, Symfony\Component\Routing\Exception\ResourceNotFoundException(code: 0): at /www/wwwroot/52hentai.com/var/cache/prod/appProdProjectContainerUrlMatcher.php:496)"} []
[2019-05-26 13:10:37] cache.WARNING: Failed to save key "%5BSymfony%5CBundle%5CTwigBundle%5CController%5CExceptionController%5D%5B1%5D" (array) {"key":"%5BSymfony%5CBundle%5CTwi
这两报错 重复出现

每次跑php bin/console assetic:dump --env=prod 这个代码后

都会出现
[2019-05-26 14:33:20] assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Unknown "profiler_dump" function in "SecurityBundle:Collector:security.html.twig" at line 116. [] []
[2019-05-26 14:33:20] assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Unknown "profiler_dump" function in "DoctrineBundle:Collector:db.html.twig" at line 243. [] []

这个2个报错

发完邮箱后,并没有报错

19 days later, 大佬抛弃了我

这里面有两个issue,我不知道是哪个对你有影响,发邮件的,你可以试试通过phpmailer或者swiftmail单独测试一下;另外一个,应该不是太大问题,加上--env=prod我猜是可以消除的。

大哥你安装成功了吗?我试了好多遍都没有成功。能不能指导下谢谢 QQ908507670

@caiboqiang 请单独发issues并贴出报错信息或者日志