简体   繁体   English

无法从Laravel项目中的Godaddy Webmail发送电子邮件

[英]Can't send email from my Godaddy Webmail in Laravel project

I want to send email from my Godaddy webmail in Laravel project. 我想从Laravel项目的Godaddy网络邮件中发送电子邮件。

I have configured all the credentials perfectly and there is no connection related problem in Log file. 我已经完美配置了所有凭据,并且日志文件中没有与连接有关的问题。 But still mail is not sending 但是邮件仍然没有发送

.env file .env文件

MAIL_DRIVER=smtp    
MAIL_HOST=sg2plcpnl0003.prod.sin2.secureserver.net    
MAIL_PORT=465    
MAIL_USERNAME=info@ezmoverandrental.com    
MAIL_PASSWORD='my_web_mail_pass'    
MAIL_ENCRYPTION=ssl

config/mail.php config / mail.php

'driver' => env('MAIL_DRIVER', 'smtp'),    
'host' => env('MAIL_HOST', 'sg2plcpnl0003.prod.sin2.secureserver.net'),    
'port' => env('MAIL_PORT', 465),    
'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'info@ezmoverandrental.com'),
        'name' => env('MAIL_FROM_NAME', 'test'),
    ],    
'encryption' => env('MAIL_ENCRYPTION', 'ssl'),    
'sendmail' => '/usr/sbin/sendmail -bs',

I can't find any solution. 我找不到任何解决方案。

If anyone have any query please feel free to ask. 如果有人有任何疑问,请随时询问。

On a shared hosting you have to use the native sendmail as a driver works mostly. 在共享主机上,大多数情况下必须使用本机sendmail作为驱动程序。

change your mail driver to mail or sendmail 将您的邮件驱动程序更改为mailsendmail

MAIL_DRIVER=sendmail    
MAIL_HOST=sg2plcpnl0003.prod.sin2.secureserver.net    
MAIL_PORT=465    
MAIL_USERNAME=info@ezmoverandrental.com    
MAIL_PASSWORD='eZia120$'    
MAIL_ENCRYPTION=ssl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM