Asp Error for mail Sending

  • nab_d25e15
  • Born
  • Born
  • nab_d25e15
  • Posts: 1

Post 3+ Months Ago


This is Naresh , since i am new to asp i have some difficult in mail sending coding

this my coding please help me

Error Type:
CDO.Message.1 (0x80040213)
The transport failed to connect to the server.

my coding:

<!--#include file="connopen.asp"-->
<!--METADATA TYPE="typelib"
NAME="CDO for Windows 2000 Library" -->
<!--METADATA TYPE="typelib"
NAME="ADODB Type Library" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Bonafides Nature Health Beauty Face Essentials, Eye &amp; Neck Essentials, Lip &amp; Ear Essentials, Spa Essentials, Hair Services &amp; Peeling Treatment</title>
set rs=server.CreateObject("adodb.recordset") "select emailaddress,password from Users_Info where emailaddress='"&TRIM(request.Form("emailaddress"))&"'",con,1,2
if (rs.recordcount = "1") then
'Mail Code
'Set myMail=server.CreateObject("CDO.Message")
'myMail.Subject="Forgot Password Details From"
dim mailcode
mailcode=mailcode &"<style type=text/css>"
mailcode=mailcode &"<!--"
mailcode=mailcode &".style2 {"
mailcode=mailcode &" font-size: 11px;"
mailcode=mailcode &" font-family: Verdana, Arial, Helvetica, sans-serif;"
mailcode=mailcode &" font-weight: bold;"
mailcode=mailcode &"}"
mailcode=mailcode &"-->"
mailcode=mailcode &"</style>"
mailcode=mailcode &"<table width=100% border=0 cellspacing=4 cellpadding=4>"
mailcode=mailcode &"<tr>"
mailcode=mailcode &"<td class=style2>Forgot Password Details From</td>"
mailcode=mailcode &"</tr>"
mailcode=mailcode &"<tr>"
mailcode=mailcode &"<td class=style2><strong><u>Password :</u></strong>"&rs(1)&"</td>"
mailcode=mailcode &"</tr>"
mailcode=mailcode &"</table>"
'myMail.HTMLBody = mailcode
'set myMail=nothing
'Mail Code
'on error resume next
'sch = ""

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoConfig = Server.CreateObject("CDO.Configuration")

cdoConfig.fields.Item("") = 2
cdoConfig.fields.Item("") = ""
cdoConfig.fields.Item("") = 25
cdoConfig.fields.Item("") = 150
cdoConfig.fields.Item("") = 1
cdoConfig.fields.Item("") = ""
cdoConfig.fields.Item("") = "mypassword"


Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = ""
cdoMessage.To =""
cdoMessage.Subject ="Forgot Password Details From"
cdoMessage.HtmlBody = mailcode
Set cdoMessage = Nothing
Set cdoConfig = Nothing
end if
"i am using IIs server and Xp servise pack2"
please help me

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 38 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.