
June 4th, 2003, 04:41 AM
|
|
Registered User
|
|
Join Date: Mar 2003
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Problem receving mail using SMPT server
I have included the follwoing in asp.net aspx page:<br>If TxtEmail.Text <> "" Then<br>Dim objMail As New MailMessage()<br><br>objMail.From = TxtEmail.text<br>objMail.To = "SKComputers@attbi.com"<br>objMail.Subject = "Sending PC Configurations"<br>objMail.BodyFormat = MailFormat.Text<br>objMail.Body = txtbody.text<br>SmtpMail.SmtpServer ="webserver"<br>SmtpMail.Send(objMail)<br>lblResponse.Text = "!!!!!!Thank you .... Your email has been Send.!!!!!!!"<br>Else<br>lblResponse.Text = "Problem with your Email.....Please enter Your email address."<br>End If<br>End Sub<br><br>When this page is running in debug mode in visualstudio, I can send emails at skcomputers@attbi.com,but when I run the same page in Internet Browser then the email is not received at skcomputers@attbi.com<br>I don't get any error message, and I get a message that email is send form my code. <br>I have checked all the directories under mailroot and only directory that has somthing in it is C:InetpubmailrootDrop directory which has couple of warning message: <br>"Delivery to the following recipients has been delayed SKComputers@attbi.com" <br><br>Also FROM and TO are looks like as following:<br><br>From: postmaster@webserver<br>To: sktest@webserver<br>Sent: Sunday, June 01, 2003 12:07 PM<br>Subject: Delivery Status Notification (Delay)<br><br>I am confused whats going on. I am using D-link wireless router which has port 80 open for my website. Port 25 in the router is not running its only configured through IIS SMPT server. Can some body tell me what could not be configured, IS it my pc or the router or my code is not correct? Do I need to assign new IP address to PORT 25 in my router? Currently its disabled.<br>thanks<br>sk
|