Initiate Live Support Contact Numbers Raise a Support Ticket
Hosting Technical Support Options
dotnetted - the hosting specialists
the hosting specialists
no part of
order .net hosting .net hosting packages frequently asked questions technical support hosting terms / aup contact dotnetted
half price .net web hosting
half price .net 4.0 hosting
99.99% uptime DreamWeaver
UK based servers Visual Studio .Net
UK bandwidth Classic ASP
ASP.NET 1.1 - 4.5 SQL Server
IIS 7 or IIS 8 Application isolation
  Technical Support
General Support
Domain Names
Default Documents
SSL Shared Cert
ASP 500 error message
Pre-installed Files
Changing .Net version
Publishing Your Site
Uploading with FTP
FrontPage/Visual Studio
Using DreamWeaver
Greylisting (important)
Setup pop3 and smtp
Using webmail
E-mail administration
Configure spam filters
Access Database
SQL Server
ASP Mail Script
ASP Form To E-Mail
ASP Send Secure E-Mail
Other ASP Components
Session State for .NET
Send mail with .NET 1.1
Send mail with .NET 2+
Upload file using .NET
Contact tech support

Send mail using .NET 1.1

There is now no need to use an additional third party mail component when sending mail from your .NET pages. As of version 1.1 .NET now allows you to select an external SMTP server and to authenticate when sending mail using System.Web.Mail.

A simple script to send an e-mail using the DotNetted mailserver and authentication :

<%@ Import Namespace = "System.Web.Mail" %>


' Create mail object
Dim mail As New MailMessage()

' Define mail settings
mail.To = ""
mail.From = ""
mail.Subject = "this is a test email."
mail.Body = "Some text goes here"

' These lines are required for authentication
' Lines are broken in this view, each should be on a single line - 3 lines total
Mail.Fields("") = 1
Mail.Fields("") = ""
Mail.Fields("") = "password"

' Specify SMTP server
SmtpMail.SmtpServer = ""

' Send the e-mail


That's it - you just need to substitute your to, from, username and password values and you should be able to copy this script to your account and send your first e-mail.

Please Note : as we use authentication the 'mail.From' e-mail address must be a live user / mailbox on our mailserver matching the address used for the username (this must be an actual username / mailbox and not an Alias).

order hosting   hosting packages   frequently asked questions   technical support   terms and conditions   contact dotnetted
Copyright © DotNetted - All Rights Reserved Prices are subject to VAT @ 20%