I store my email settings in a web configuration, for example ...
<mailSettings> <smtp from="splidge@findremovalcompanies.com"> <network host="smtp.findremovalcompanies.com" userName="splidge@findremovalcompanies.com" password="password" /> </smtp> </mailSettings>
Now when i create a new
var smtp = new SmtpClient();
smpt has my credentials and will be by default from the address to splidge@findremovalcompanies.com, which will save me from having to do this every time.
MailAddress("splidge@findremovalcompanies.com", "Splidge Master")
But I can't figure out how to specify the friendly display name "Splidge Master" in the web.config file. No settings for it?
Naz 08 Sep '09 at 14:31 2009-09-08 14:31
source share