Take the 2-minute tour ×  Is it possible to set "To" address in
SMTP mail settings just like "From" address? there is an
attribute for "From", but not "To" address. basically I need to
send an email to technical support whenever a specific exception
(or any unhandled exception) happens in the application. I can
add it to "appSettings", but wondering if I can specify it in
SMTP settings itself, without having to read from "appSettings".
thanks in advance        <smtp deliveryMethod="network"
from="ben@contoso.com">         <network host="some server"
defaultCredentials="true" /> share|improve this question  2
Answers 2  up vote 3 down vote accepted  No, you cannot specify
the To property in the config file. You will need to set it
programatically.  share|improve this answer thanks for the
reply. since the To mail address is fixed in my case, I was
thinking if I can specify it in the settings just like from
address –  RKP Dec 13 '10 at 13:52  Well, you'll have to set the
TO, CC, BCC, Subject, Content and a few