Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: CDONTS


Message #1 by "Jeff Myers" <jeff@a...> on Tue, 13 Feb 2001 00:05:33 -0500
I am trying to use CDONTS on my webpage.  When the submit button is pushed,

it goes to the redirection page, but I don't get any email from the form

that is there.  Here is the code:



<%

 mailString = "name: " &Request.Form("Name")&chr(13)

 mailString = mailstring & "Organization: "&

Request.Form("Organization")&chr(13)

 mailString = mailstring & "Address: " &Request.Form("Address")&chr(13)

 mailString = mailstring & "Address_2: " &Request.Form("Address_2")&chr(13)

 mailString = mailstring & "City: " &Request.Form("City")&chr(13)

 mailString = mailstring & "state: " &Request.Form("state")&chr(13)

 mailString = mailstring & "Zip_Code: " &Request.Form("Zip_Code")&chr(13)

 mailString = mailstring & "Phone: " &Request.Form("Phone")&chr(13)

 mailString = mailstring & "Email: " &Request.Form("Email")&chr(13)

 mailString = mailstring & "Comments: " &Request.Form("Comments")&chr(13)





 Set objCDO = Server.CreateObject("CDONTS.NewMail")

 objCDO.From = Request.Form ("Email:")

 objCDO.TO = "jeff@a..."

 objCDO.Subject = "Advertising Information"

 objCDO.Body = mailString

 objCDO.Send

 Set objCDO = Nothing

 Response.Redirect("http://www.goboone.com")



%>



Please Help....





Jeff M.



Message #2 by "Shahriar Moosavizadeh" <shahriar@i...> on Tue, 13 Feb 2001 14:41:53
You can try these steps first.



1)  Make sure your machine is set up properly as a mail client. 



2)  Try to put in some debugging lines to get a specific problem.  

Something like:



On Error Resume Next

objCDO.Send

If err.number <> 0 then

  Response.Write CStr(err.number) + " : " + err.description

  Response.End

end if
Message #3 by "Heesung Oh" <wafe@o...> on Wed, 14 Feb 2001 09:16:01 +0900
PGh0bWw+Cjxib2R5Pgo8aW1nIHNyYz0iaHR0cDovL3VzZXIyLm9yZ2lvLm5ldC9vcmdpb21h

aWwvYnV0dG9uLnBocDM/aWQ9ZGtxZGRlZ2ZvbGh5cHNxZWp6ZiZ1c2VyPXdhZmUiIHdpZHRo

PSIxIiBoZWlnaHQ9IjEiPgo8cHJlPgoNCllvdSBoYXZlIHRvIGNoZWNrICB0aGUgU01UUCBp

biB5b3VyIGNvbXB1dGVyLiBTTVRQIGV4aXN0cyBpbiBJSVMgKElmIHlvdXIgY29tcHV0ZXIg

d2FzIFdpbjJYIHNlcnZlciwgaXQgd2FzIHNldHRpbmcgYXV0b21hdGljYWxseSkNCg0KDQpJ

IHRoaW5rIHRoYXQgdGhlIHN0YXRlbWV0ZXMgaW4geW91ciBjb2RkaW5nIHRvIGJlIGNoYW5n

ZWQgLi4uDQpvYmpDRE8uRnJvbSA9IFJlcXVlc3QuRm9ybSAoIkVtYWlsOiIpIC0tPiAgb2Jq

Q0RPLkZyb20gPSBSZXF1ZXN0LkZvcm0gKCJFbWFpbCIpDQolPg0KPC9wcmU+CjwvYm9keT4K

PC9odG1sPgo



Message #4 by Srikieat Sriprawatkul <srikieat@y...> on Thu, 15 Feb 2001 03:17:24 -0800 (PST)
Look in the Queue or Bad mail Folder.Do your mail in

there?

--- Jeff Myers <jeff@a...> wrote:

> I am trying to use CDONTS on my webpage.  When the

> submit button is pushed,

> it goes to the redirection page, but I don't get any

> email from the form

> that is there.  Here is the code:

> 

> <%

>  mailString = "name: " &Request.Form("Name")&chr(13)

>  mailString = mailstring & "Organization: "&

> Request.Form("Organization")&chr(13)

>  mailString = mailstring & "Address: "

> &Request.Form("Address")&chr(13)

>  mailString = mailstring & "Address_2: "

> &Request.Form("Address_2")&chr(13)

>  mailString = mailstring & "City: "

> &Request.Form("City")&chr(13)

>  mailString = mailstring & "state: "

> &Request.Form("state")&chr(13)

>  mailString = mailstring & "Zip_Code: "

> &Request.Form("Zip_Code")&chr(13)

>  mailString = mailstring & "Phone: "

> &Request.Form("Phone")&chr(13)

>  mailString = mailstring & "Email: "

> &Request.Form("Email")&chr(13)

>  mailString = mailstring & "Comments: "

> &Request.Form("Comments")&chr(13)

> 

> 

>  Set objCDO = Server.CreateObject("CDONTS.NewMail")

>  objCDO.From = Request.Form ("Email:")

>  objCDO.TO = "jeff@a..."

>  objCDO.Subject = "Advertising Information"

>  objCDO.Body = mailString

>  objCDO.Send

>  Set objCDO = Nothing

>  Response.Redirect("http://www.goboone.com")

> 

> %>

> 

> Please Help....

> 

> 

> Jeff M.

> 

> 

  Return to Index