Subject: Email problem
Posted By: asif_sharif Post Date: 1/9/2006 10:00:35 AM
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
Reply By: g_vamsi_krish Reply Date: 1/10/2006 12:09:35 AM
i Think u need to configure u r smpt server properly.

vamsi
Reply By: asif_sharif Reply Date: 1/11/2006 12:31:31 AM
thanks for your suggestion but what configuration i set for smtp server



asif
Reply By: planoie Reply Date: 1/11/2006 12:37:47 PM
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

Go to topic 38600

Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394
Return to index page 393
Return to index page 392
Return to index page 391
Return to index page 390
Return to index page 389