J
Jeff
Hey
..net 3.5
In my webproject I got a CreateUserWizard which contain this code for
sending confirmation email to the registered user:
<MailDefinition From="(e-mail address removed)" BodyFileName="~/MailFile.txt"
Subject="Confirmation">
</MailDefinition>
This sends email. But I don't like this solution. Here the senders email
address is hard coded into the source code. I want to be able to have
senders email address in web.config, so it easily can me modified without
the need to recompile the entire project... I'm not sure what is the best
tag in web.config for storing the email address... I assume when using
web.config, I must skip the MailDefinition tag and instead send email via
the behind code...
any suggestions?
..net 3.5
In my webproject I got a CreateUserWizard which contain this code for
sending confirmation email to the registered user:
<MailDefinition From="(e-mail address removed)" BodyFileName="~/MailFile.txt"
Subject="Confirmation">
</MailDefinition>
This sends email. But I don't like this solution. Here the senders email
address is hard coded into the source code. I want to be able to have
senders email address in web.config, so it easily can me modified without
the need to recompile the entire project... I'm not sure what is the best
tag in web.config for storing the email address... I assume when using
web.config, I must skip the MailDefinition tag and instead send email via
the behind code...
any suggestions?