php自帶的mail函數發郵件不靠譜,跨平臺移植性差。
這裏找到一個國外phper寫的強大的php發郵件的插件:PHPMailer
官網:http://phpmailer.worxware.com/
首先:確認你的服務器系統已經支持soc
thinkphp引入phpmailer發送郵件
http://www.cnblogs.com/wenzichiqingwa/archive/2013/03/12/2956168.html
解決 phpmailer 發件中文亂碼的問題
http://hi.baidu.com/fire0147/item/5d7755ecdc25aeb42e140b58