Skip to content

Instantly share code, notes, and snippets.

@frankgeerlings
Created June 7, 2012 17:25
Show Gist options
  • Save frankgeerlings/2890188 to your computer and use it in GitHub Desktop.
Save frankgeerlings/2890188 to your computer and use it in GitHub Desktop.
SMTP server in Web.config
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="someaddress@example.com">
<network
host="mail.example.com"
userName="something@example.com"
password="*************"
port="25" />
</smtp>
</mailSettings>
</system.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment