久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 GoDaddy 服務(wù)器上發(fā)送電子郵件時出錯:Laravel 5

Error while sending email on GoDaddy Server: Laravel 5.1(在 GoDaddy 服務(wù)器上發(fā)送電子郵件時出錯:Laravel 5.1)
本文介紹了在 GoDaddy 服務(wù)器上發(fā)送電子郵件時出錯:Laravel 5.1的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我在 Laravel 5.1 中使用登錄系統(tǒng)的內(nèi)置模板

當(dāng)我在本地主機上使用忘記密碼時,一切正常.以下是我在 .env 文件中的密鑰

MAIL_DRIVER=smtpMAIL_HOST=smtp.gmail.comMAIL_PORT=587MAIL_USERNAME=用戶名MAIL_PASSWORD=密碼MAIL_ENCRYPTION=tls

當(dāng)我在 Godaddy 服務(wù)器上嘗試同樣的事情時,我面臨以下錯誤.

<塊引用>

StreamBuffer.php 第 265 行中的 Swift_TransportException:連接無法與主機 smtp.gmail.com 建立 [連接被拒絕

111]

解決方案

您的 env 文件必須如下所示

MAIL_DRIVER=smtpMAIL_HOST=本地主機MAIL_PORT=465MAIL_USERNAME=郵件密碼=MAIL_ENCRYPTION=ssl

在您的 config/mail.php 中,from 值應(yīng)如下所示...

'from' =>['地址' =>'pankaj@YourDomainName.com', 'name' =>'發(fā)件者姓名'],

你的域名來自于什么?或者您可以說,如何在 GoDaddy 中創(chuàng)建電子郵件帳戶?

<塊引用>

  1. 登錄您的 GoDaddy 帳戶
  2. 轉(zhuǎn)到您的托管帳戶.
  3. 點擊管理
  4. 在電子郵件類別下,請點擊帳戶
  5. 如果沒有電子郵件帳戶,請創(chuàng)建一個帳戶.

就是這樣.

假設(shè)您有像 Pankaj@yourdomainname.com 這樣的電子郵件地址

現(xiàn)在,將此電子郵件地址放在 config/mail.php 的 from 字段中.就是這樣.

這將 100% 解決問題

I am using inbuilt template of Login System in Laravel 5.1

When I use Forgot Password on localhost, everything works. Below are my keys in .env file

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=userid
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls

When I try the same thing on Godaddy server, I am facing the below error.

Swift_TransportException in StreamBuffer.php line 265: Connection could not be established with host smtp.gmail.com [Connection refused

111]

解決方案

Your env file must be like below

MAIL_DRIVER=smtp
MAIL_HOST=localhost
MAIL_PORT=465
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=ssl

In your config/mail.php, the from value should be like below...

'from' => ['address' => 'pankaj@YourDomainName.com', 'name' => 'Sender Name'],

What's your domain Name in from ? or you can say, How to create Email account in GoDaddy ?

  1. Login in your GoDaddy Account
  2. Go to your Hosting Account.
  3. Click Manage
  4. Under Email category, Please click Accounts
  5. Create an account if there is no email account.

and that's it.

So let's say you have email address like Pankaj@yourdomainname.com

Now, put this email address in config/mail.php for from field. That's it.

This will 100% fix the issue

這篇關(guān)于在 GoDaddy 服務(wù)器上發(fā)送電子郵件時出錯:Laravel 5.1的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Magento products by categories(按類別劃分的 Magento 產(chǎn)品)
Resource interpreted as image but transferred with MIME type text/html - Magento(資源被解釋為圖像但使用 MIME 類型 text/html 傳輸 - Magento)
Is there an event for customer account registration in Magento?(Magento 中是否有客戶帳戶注冊事件?)
Magento addFieldToFilter: Two fields, match as OR, not AND(Magento addFieldToFilter:兩個字段,匹配為 OR,而不是 AND)
quot;Error 404 Not Foundquot; in Magento Admin Login Page(“未找到錯誤 404在 Magento 管理員登錄頁面)
Get Order Increment Id in Magento(在 Magento 中獲取訂單增量 ID)
主站蜘蛛池模板: 一级片av| 成人免费网站 | 国产一区二区三区www | 国产精品久久久久久二区 | 中文字幕日韩欧美一区二区三区 | 国产ts人妖系列高潮 | www国产成人免费观看视频,深夜成人网 | 欧美成人精品在线观看 | 亚洲 欧美 日韩 在线 | 午夜二区 | 国产成人精品一区二区三区四区 | 国产亚洲黄色片 | 中文成人无字幕乱码精品 | 69xxx免费| 精品美女在线观看视频在线观看 | 久久综合久色欧美综合狠狠 | 99re视频 | 日韩中出 | 免费久久精品 | 99久久99| 国产精品久久久久久福利一牛影视 | 中文字幕高清视频 | 亚洲一区自拍 | 午夜影院操 | 视频精品一区二区三区 | 久久国产美女视频 | 久久久网| 国产观看 | 毛片久久久 | 91精品国产综合久久久久久丝袜 | 欧美日韩视频在线播放 | 91精品国产92 | 久草免费电影 | 国产亚洲精品精品国产亚洲综合 | 欧美午夜影院 | 色桃网 | 视频一区在线观看 | 亚洲欧洲精品在线 | 亚洲欧美日韩在线 | 欧美二区在线 | 黄色片av|