laravel Bluehost 的邮件服务器似乎没有从 Swiftmailer 发送我的电子邮件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19411721/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Bluehost's mail server seems not be sending my emails from Swiftmailer
提问by Pooria Khodaveissi
I've a laravel app nad I've been testing it with gmail smtp server and It was working in my system's localhost but then I deployed it on server (blue host) and change the configuration and still the app thinks that is sending emails and it's not giving me errors but no email is delivered to corresponding email addresses....
我有一个 Laravel 应用程序,我一直在用 gmail smtp 服务器测试它,它在我系统的本地主机上工作,但后来我将它部署在服务器(蓝色主机)上并更改了配置,但应用程序仍然认为正在发送电子邮件和它没有给我错误,但没有电子邮件发送到相应的电子邮件地址....
Here's my mail.php in app folder:
这是我在 app 文件夹中的 mail.php:
return array(
'driver' => 'smtp',
'host' => 'mail.mash-up.fi',
'port' => 26,
'from' => array('address' => '[email protected]', 'name' => 'Admin'),
'encryption' => 'tls',
'username' => '************',
'password' => '******',
'sendmail' => '/usr/bin/sendmail -bs',
'pretend' => false,
);
where I'm doing wrong?
我哪里做错了?
any help is appreciated
任何帮助表示赞赏
回答by msj121
Please try to check the spam folder of where your sending to. If there is nothing, make sure your "from" is truly your bluehost email account your using to send the email. If the actual sender doesn't match the "from" of the e-mail many mail clients will ignore it entirely (like hotmail), but gmail will put it in the spam folder with a warning.
请尝试检查您发送到的垃圾邮件文件夹。如果什么都没有,请确保您的“发件人”确实是您用来发送电子邮件的 bluehost 电子邮件帐户。如果实际发件人与电子邮件的“发件人”不匹配,许多邮件客户端将完全忽略它(如 hotmail),但 gmail 会将其放入垃圾邮件文件夹并发出警告。
The host should be your bluehost box I think. In fact on cpanel, go to email, where you create accounts. Then click on "More", select "Configure Email Client", scroll down. You will see the host name, and port.
我认为主机应该是你的 bluehost box。事实上,在 cpanel 上,转到电子邮件,您可以在其中创建帐户。然后点击“更多”,选择“配置电子邮件客户端”,向下滚动。您将看到主机名和端口。
TTL/SSL would likely need port 465, I am guessing (I use the latter, not the former like you).
TTL/SSL 可能需要端口 465,我猜(我使用后者,而不是像你一样的前者)。
回答by Bassem
If you are using the BH DNS(ns1.bluehost...), then check to see that the $from address is an existing email in your BH account. (go to your CP /domain manager and use whois info to find that out.) or..... maybe, you migrated the source code, but did you transfer your domain name to BH, or is it pointing to BH servers (DNS) In that case your site is not using the BH mail servers. example :your site content could be on BH, but if it is registered somewhere else and the DNS is not ns1.bluehost.com..etc, then your domain might be using url forwarding or framing (to bring visitors to the BH location). but your mail functions may be handled by the registrar's
如果您使用 BH DNS(ns1.bluehost...),请检查 $from 地址是否是您 BH 帐户中的现有电子邮件。(转到您的 CP /域管理器并使用 whois 信息来查找。)或者..... 也许,您迁移了源代码,但是您是否将您的域名转移到 BH,或者它是否指向 BH 服务器( DNS) 在这种情况下,您的站点不使用 BH 邮件服务器。例如:您的站点内容可能在 BH 上,但如果它在其他地方注册并且 DNS 不是 ns1.bluehost.com..etc,那么您的域可能正在使用 url 转发或框架(将访问者带到 BH 位置) . 但您的邮件功能可能由注册商处理
hope this is not too confusing it is also helpfull if you post your domain name here and others can help figure out as well.
希望这不会太令人困惑,如果您在此处发布您的域名并且其他人也可以帮助弄清楚它也会有所帮助。
回答by Austen Payan
Open up the laravel.logs file inside of storage > logs. It should help give you some idea of what the problem might be.
打开 storage > logs 中的 laravel.logs 文件。它应该有助于让您了解可能是什么问题。