Link to home
Start Free TrialLog in
Avatar of tenriquez199
tenriquez199

asked on

someone could help me to correct an error when send mail with CDO

hi

i'm developing a html page , and i need to send a form message via CDO , b ut i have asp error .

this is may code, and i attach teh screen error

someone could help me please

thanks a lto

<%

If request("submit") <> "" THEN
Set objEMail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")
Set Confi = objConfig.Fields
Confi("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
Confi("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:inetpubmailrootpickup"
Confi.Update
Set objEMail.Configuration = objConfig
objEMail.To = "antonio.enriquez@tecplay.com.mx"
objEMail.From = Request("from")
objEMail.Subject = Request("subject")
objEMail.TextBody = Request("message")
objEMail.Send
Set objEMail = Nothing
Response.Write("Message Sent")
Else
%>

<form method="post" action="this.asp">
From Email: <INPUT type=text name="from"><br />
Subject: <INPUT type=text name="subject"><br />
Message: <TEXTAREA name="message" rows=10 cols=40></TEXTAREA><br />
<INPUT type="submit" value="Send" name="submit">
</form>
<%
End If
%>
ASP-ERROR.JPG
index-8.html
Avatar of X-treem
X-treem
Flag of Belgium image

the error you are getting is a file not found error (404)
is the file this.asp in the location that is shown in the error message?
is the security on it ok?
The file this.asp is not on your IIS server on the path /constructora1/this.asp or the internet user hasn't permission to access that file.
Avatar of tenriquez199
tenriquez199

ASKER

hi X-treem

thanks your comment

i unknow wich is that file this.asp

comment made you , i'm develop a mail form send via asp, and i copy this code from a page, i dont know what not to be included in this file

could yo have some idea?

tah pagw where i copy this code is:

http://www.webdesign.org/web-programming/asp/form-mail-via-cdosys.8460.html

thanks your help
ASKER CERTIFIED SOLUTION
Avatar of tenriquez199
tenriquez199

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've requested that this question be closed as follows:

Accepted answer: 0 points for tenriquez199's comment #37839886

for the following reason:

i solve it with tool provided by freecontactform.com<br /><br />thanks<br /><br /><a href="http://www.freecontactform.com/free.php" target="_blank">http://www.freecontactform<wbr />.com/free.<wbr />php</a>
hi

as you see i found a tool who solve my dude

thanks a lot