Loading...

php在windows系統下無法使用mb_send_mail寄信?

Temperature: 0 °C

Mark ChangMark Chang
author_tools

首先,mb_send_mail是php所提供可用來發送編碼的郵件。

一般來說會導致無法發送郵件大部分原因都是發生在windows server環境。

而我們可以做的便是修改php.ini裏頭mail function的設定。

將原本預設的

SMTP = localhost

修改為你所要使用的SMTP。

這邊以Hinet的光纖網路來設定,就設定為msa.hinet.net

當然也別忘了設定一下寄件者的mail。
[mail function]
; For Win32 only.
; http://php.net/smtp
;SMTP=localhost
SMTP=msa.hinet.net
; http://php.net/smtp-port
smtp_port=25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = your mail address


以上紀錄。

https://innstory.com/story-php在windows系統下無法使用mbsendmail寄信-2223
PHP

Prev
 分享_魂斗羅密技之父_橋本和久逝世__Yahoo奇摩新聞

Next
讓文字左右對齊 

About the Author

Mark Chang

離不開電腦的宅男

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

在PHP中如何將NAN轉換為0

在PHP中如何將NAN轉換為...

首先我會得到NAN是因為我有一個計算結果為的值然後我讓他除以,結果就得到了NAN 首先甚麼是NAN?...

使用jquery判斷上傳檔案大小

使用jquery判斷上傳檔案...

首先得引用jquery var fileSize = document.getElementById...

Android Fragment及Activity 中使用sharedpreferences

Android Fragme...

在Android下想要儲存執行資料的方式有好幾種,例如存在手機空間或者是資料庫空間。 這裡紀錄一下使...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format