Hello Imar,
Wonderful book, very well put together, Iâm learning a great deal.
I have two questions about e-mail that I couldn't find addressed in the blog (chap 9 and 19). The 'from address' in the ContactForm.ascx.cs seems to have no effect. No matter what address I put in there or the config.sys <add key/> has no effect. The address in the web.config <mailSettings/> is the one always used and is what shows up in the e-mail from field. What is the purpose of the 'from' code if it has no effect.
Code:
myMessage.From = new MailAddress(AppConfiguration.FromAddress, AppConfiguration.FromName);
<add key="FromAddress" value="[email protected]" />
A second question is there any way not to expose your password in the config.sys file. Obviously I wouldnât want to use a personal account there.
Thanks,
wr