title: How to do a web.config transform for smtp?
body: <p>I have this in my root web.config </p>
  
  <pre><code> &lt;mailSettings&gt;
       &lt;smtp from="no-reply@test.com" deliveryMethod="SpecifiedPickupDirectory"&gt;
           &lt;specifiedPickupDirectory pickupDirectoryLocation="C:\temp"/&gt;
           &lt;network host="localhost"/&gt;
       &lt;/smtp&gt;
   &lt;/mailSettings&gt;
  </code></pre>
  
  <p>Of course when I put this to my hosting server I don't want it to be saving to the harddrive I want it to send out the emails.</p>
  
  <p>So I would have something like this</p>
  
  <pre><code>&lt;system.net&gt;
    &lt;mailSettings&gt;
      &lt;smtp deliveryMethod="Network"&gt;
        &lt;network host="smtp.mysite.com" userName="myuser" password="mypassword" /&gt;
      &lt;/smtp&gt;
    &lt;/mailSettings&gt;
  &lt;/system.net&gt;
  </code></pre>
  
  <p>How could I put this in my web.release.config? Should I just do a replace of the mailSettings. I am not sure really how to the transforms yet.</p>