English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to be able to write code to send mail in ASP.NET 2005 (vb)

2006-09-19 04:32:21 · 2 answers · asked by ucheoscar 1 in Computers & Internet Programming & Design

2 answers

Imports System.Web.Mail

SmtpMail.Send("yourid@yourhost.com","someone@somehost.com", "a subject","your message")

or

public static void Send(MailMessage).

Here MailMessage is a class.

Private myMessgeAs MailMessage = New MailMessage()
Private myMessge.From = yourid@yourhost.com
Private myMessge.To = someone@somehost.com
Private myMessge.Cc = someoneelse@somehost.com
Private myMessge.Bcc = mybcc@somehost.com
Private myMessge.Subject = "Some subject"
Private myMessge.Body = "Text of the Message"
SmtpMail.Send(myMessge).

2006-09-19 05:01:30 · answer #1 · answered by Tarak 2 · 0 0

apart from the answer to the previous poster, you can also visit this website for more information. it is completely dedicated to sending email with .NET

http://www.systemnetmail.com/

2006-09-19 18:07:21 · answer #2 · answered by soulblazer28 2 · 0 0

fedest.com, questions and answers