Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For 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
 
Old January 9th, 2006, 11:00 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email problem

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

asif
__________________
asif
 
Old January 10th, 2006, 01:09 AM
Authorized User
 
Join Date: Dec 2005
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to g_vamsi_krish
Default

i Think u need to configure u r smpt server properly.

vamsi
 
Old January 11th, 2006, 01:31 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your suggestion but what configuration i set for smtp server



asif
 
Old January 11th, 2006, 01:37 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in sending Email rama26 J2EE 0 April 24th, 2006 12:07 AM
send email problem rongfu84 Java Databases 0 January 6th, 2006 10:28 AM
Email Problem .net jgoddard General .NET 2 December 13th, 2004 10:11 AM
Email Problem Teon ASP.NET 1.0 and 1.1 Basics 1 September 29th, 2003 07:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.