2011-06-04 65 views

回答

3

你必須編輯你的web.config文件是這樣的:

<system.net> 
    <mailSettings> 
    <!-- Method#1: Configure smtp server credentials --> 
    <smtp from="[email protected]"> 
     <network enableSsl="true" host="smtp.gmail.com" port="587" userName="[email protected]" password="valid-password" /> 
    </smtp> 
    </mailSettings> 
</system.net> 

參考:

http://www.hanselman.com/blog/NuGetPackageOfTheWeek2MvcMailerSendsMailsWithASPNETMVCRazorViewsAndScaffolding.aspx\ 
+0

接縫,它會工作,將測試一下看看。 – 2011-06-19 18:00:43

+1

我愛你!迅速 – Tejo 2013-04-02 23:08:15

相關問題