ASP.NET 1.0 and 1.1 ProfessionalFor advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
hi,
when i send email through asp.net it goes to queue folder
my code is
Try
lb.Text = ""
Dim email As New MailMessage
email.To = tt.Text
email.From = tf.Text
email.Body = tm.Text
email.Subject = ts.Text
email.BodyFormat = Web.Mail.MailFormat.Text
SmtpMail.SmtpServer = Server.MachineName
System.Web.Mail.SmtpMail.Send(email)
lb.Text = "Email send"
Catch ex As Exception
tm.Text = ex.InnerException.ToString
End Try
can anyone kown it
please help
You need to specify a SMTP server other that your local machine. Usually this would be something like "mail.mycompany.com". Also, very often your ISP will accept inbound mail from inside its own network without a problem.