Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

Sample code in ASP.NET for sending mail via a web form

Please use the example code below in ASP.NET. It always works on all our Windows servers (2003 & 2008).

http://support.microsoft.com/kb/555287
==================================================================================
</system.web>
    
    <system.net>
        <mailSettings>
            <smtp from="[email protected]">
                <network port="587"
                         defaultCredentials="false"
                         host="mail.yourdomainname.com"
                         userName="[email protected]"
                         password="password"/>
            </smtp>
        </mailSettings>
    </system.net>

=============================================================================================================

Shubham Saturday 15 June 2013 - 9:21 pm | | Default

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.