Any free ASP.NET Mail Component?

Z

Zean Smith

Are there any free ASP.NET mail components that is good? need to support
SMTP authentication, HTML, non-standard ports?
 
S

S. Justin Gengo

Zean,

Most servers that are running asp.net have the CDO mail object on them.

Here is some sample code for using it:

Dim Mail As System.Web.Mail.SmtpMail

Mail.SmtpServer = "localhost" '---or your mail server name here if using a
different mail server the web server is networked to.

Dim mobjMessage As New System.Web.Mail.MailMessage

mobjMessage.BodyFormat = Web.Mail.MailFormat.Text '---May also be set to
HTML

mobjMessage.From = "[From email address here]"

mobjMessage.To = "[To email address here]"

mobjMessage.Subject = "This is a test message!"

Dim msbMessage As New System.Text.StringBuilder

msbMessage.Append("This is a test message:" & vbCrLf & vbCrLf)

msbMessage.Append("This is the main message text.")

mobjMessage.Body = msbMessage.ToString

Mail.Send(mobjMessage)


--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,059
Members
48,769
Latest member
Clifft

Latest Threads

Top