A
AbraAbraCadabra
This is some code for VB that is supposed to work in ASP. How come it
doesn't seem to work in ASP?
It is supposed to send mail to an SMTP server that requires a username and
password.
'create the mail message
'Dim mail As New MailMessage()
'set the addresses
'mail.From = New MailAddress("(e-mail address removed)")
'mail.To.Add([email protected])
'set the content
'mail.Subject = "TEST TEST TEST This is an email"
'mail.Body = "this is the body content of the email."
'send the message
'Dim smtp As New SmtpClient("127.0.0.1")
'to authenticate we set the username and password properites on the
SmtpClient
'smtp.Credentials = New NetworkCredential("username", "secret")
'smtp.Send(mail)
doesn't seem to work in ASP?
It is supposed to send mail to an SMTP server that requires a username and
password.
'create the mail message
'Dim mail As New MailMessage()
'set the addresses
'mail.From = New MailAddress("(e-mail address removed)")
'mail.To.Add([email protected])
'set the content
'mail.Subject = "TEST TEST TEST This is an email"
'mail.Body = "this is the body content of the email."
'send the message
'Dim smtp As New SmtpClient("127.0.0.1")
'to authenticate we set the username and password properites on the
SmtpClient
'smtp.Credentials = New NetworkCredential("username", "secret")
'smtp.Send(mail)