smtp web.config configuration and usage
<p>I have the following problem:</p>

<p>Using asp.net C# and calling several places in code to send email to the user.</p>

<p>However the from address in different sections of the code is different, and I have only one email address configured in web.config. This causes email sent from non-configured email addresses to go to users' junk box, how do I prevent this.</p>

<p>I have the following in web.config. So if from any place in the code the from address i not hello123@site.com, it will go to users' junk box.</p>

<pre><code>  &lt;smtp deliveryMethod="Network"&gt;
    &lt;network
      host="smtp.site.com"
      userName="hello123@site.com"
      password="mypassword"
    /&gt;
  &lt;/smtp&gt;
</code></pre>

<p>Here is c# code:</p>

<pre><code>MailMessage message = new MailMessage();
message.From = new MailAddress("forgotyourpassword@abc");
message.To.Add(new MailAddress(this.txt_Email_Pass.Text));
message.Subject = "Welcome to abc";    
message.Body ="abc";
SmtpClient client = new SmtpClient();
client.Send(message);
</code></pre>
