DotNetted - Windows hosting specialists
- Windows Hosting Specialists -
Windows 2003 hosting  
 
General Support
Domain Names
Default Documents
SSL Shared Cert
ASP 500 error message
Pre-installed Files
Enabling ASP.NET 1.1
Publishing Your Site
Uploading with FTP
FrontPage/Visual Studio
Using DreamWeaver
E-Mail
Greylisting (important)
Setup pop3 and smtp
Using webmail
E-mail administration
Configure spam filters
Databases
Access Database
SQL Server 2005
SQL Server 2000
Scripting
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.0
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 = "you@yoursite.co.uk"
mail.From = "me@mysite.co.uk"
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("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "me@mysite.co.uk"
Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"

' Specify SMTP server
SmtpMail.SmtpServer = "smtp.dotnetted.co.uk"

' Send the e-mail
SmtpMail.Send(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 on our mailserver matching the address used for the username (this must be an actual username and not an Alias).

Reliability And Security -
Separate application for each site
Unique 'sandboxed' user per site
Windows 2003 / IIS 6 web hosting
Virus/Spam Protection -
All incoming e-mail virus checked
Fully configurable spam filtering
MS Scripting Support -
Full support for .NET version 1.1
Full support for .NET version 2.0
ASP.NET 3.0 and 3.5 extensions
Full support for ASP 'Classic' 3.0
Quality ASP components installed
Generous Allowances -
100 MB web space as standard
4 GB data transfer as standard
Complete E-mail Service -
pop3 and smtp e-mail services
Industry leading webmail interface
Web based administration interface
Development Software -
Compatible with Dreamweaver MX
Compatible with Visual Studio .NET
Compatible with MS Frontpage
Database Support -
MS Access databases supported
SQL Server 2000 database £6 mth
SQL Server 2005 database £6 mth
Statistics Reporting -
Comprehensive web based stats
Pre-defined or custom stats reports
Optional SSL support -
Shared SSL access just £1 / month
Your own SSL cert just £5 / month