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)
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)