Last post Jul 03, 2007 05:28 AM by Amanda Wang - MSFT
Jun 29, 2007 02:11 AM|farooq789|LINK
Sub Page_Load(Sender as Object, E as EventArgs)
If Page.IsPostBack Then
lblResponse.Text = "Your email has been sent."
Sub btn_Click(sender as Object, e as System.EventArgs)
If Request.Form("Email") <>"" Then
Dim objMail As New MailMessage()
objMail.From = firstname.lastname@example.org
objMail.BodyFormat =MailFormat.Text objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'basic authentication objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "email id") 'set your username
here objMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password") 'set your password here
SmtpMail.SmtpServer = "server name"
Else lblResponse.Text ="Please enter an email address."
When I run the program above,I am getting error meassage as "The message could not be sent to the SMTP server. The transport error code was 0x800ccc15. The server response was not available"
I help me for this problem I am struggling with problem for the last one week.
Jun 29, 2007 07:34 AM|Zhou|LINK
sometimes a firewall or an antivirus program is blocking the smtp port number 25 and the smtp server is not reachable. If you have any firewall or antivirus software installed, then you should check for this issues.
Jul 03, 2007 05:28 AM|Amanda Wang - MSFT|LINK
There is a solution, you can have a try,
Hope it can help you!