SMTP Setup

    <system.net>
        <mailSettings>
            <smtp from=”noreply@domain.com“>
                <network host=”<hostname>” userName=”” password=”” />
            </smtp>
            <!– Save Email on your local machine
            <smtp from=”noreply@domain.com” deliveryMethod=”SpecifiedPickupDirectory”>
                <specifiedPickupDirectory pickupDirectoryLocation=”C:\emails\”/>
            </smtp>
            –>
        </mailSettings>
        <defaultProxy useDefaultCredentials=”true” />
    </system.net>

Advertisements