Sending E-mail

M

Mariame

Hi Everyone
I use the following code to send an email in ASP.NET, when i try to run it
in Console or Window Application, it give me errors, Any Idea whats wrong in
it??????????
Dim smtpmail As Mail.SmtpMail

Dim msgRequest As New Mail.MailMessage

msgRequest.BodyFormat = Mail.MailFormat.Html

msgRequest.Subject = "Do Not reply to this email"

msgRequest.To = '(e-mail address removed)'

msgRequest.From = '(e-mail address removed)'

msgRequest.Body ='Body Message'

smtpmail.SmtpServer = "server"

smtpmail.Send(msgRequest)
 

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

Top