The following is a working sample of how to send mail with .Net (VB.Net) on our hosting accounts. Please note that we do not provide support for this sample. It is only provided as a guide to help you get started.
Since .Net framework uses Microsoft SMTP server which is not our default mail server, you have to open a support ticket for us, to request permission to use Microsoft SMTP server from your script.
This is what the VB.Net code looks like:
Imports System.Web.Mail
Module Module1
Sub Main()
Dim message As New MailMessage
'The sender of the email
message.From = "me@mydomain.com"
'The recipient of the email
message.To = "he@hisdomain.com"
message.Subject = "this is the subject of the mail"
message.Body = "this is the body of the mail"
SmtpMail.SmtpServer = "mail.yourdomain.com"
SmtpMail.Send(message)
End Sub
End Module