ho notato che abbiamo sempre e solo siamo come:In che modo la mia app ASP.NET ottiene automaticamente le impostazioni SMTP da web.config?
SmtpClient mSmtpClient = new SmtpClient();
// Send the mail message
mSmtpClient.Send(mMailMessage);
e l'unico posto sono impostate le credenziali sono in web.config:
<system.net>
<mailSettings>
<smtp>
<network host="xxx.xx.xxx.229" userName="xxxxxxxx" password="xxxxxxxx"/>
</smtp>
</mailSettings>
</system.net>
Quindi la mia domanda è, come ci si automagically farli su?
riflettore è tuo amico. – Steven