<p>Currently I have:</p>

<pre><code>&lt;system.net&gt;
    &lt;mailSettings&gt;
    &lt;smtp from="me@mydomain.com"&gt;
        &lt;network 
             host="localhost" 
             port="25"
             /&gt;
      &lt;/smtp&gt;
    &lt;/mailSettings&gt;
  &lt;/system.net&gt;
</code></pre>

<p>How can I change it so the email is sent with a name and not the email address only? </p>

Well, in code you need to put the sender's name in quotes, followed by the e-mail address.
```
```
new SmtpClient(...).Send("\"John Smith\" jsmith@somewhere.com", ...);
```
```
And...it looks like you can encode it into the attribute too...
```
```
<smtp from="&quot;John Smith&quot; &lt;jsmith@somewhere.com&gt;">
```
```