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.M essage")
Set objConfig = Server.CreateObject("CDO.C onfigurati on")
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
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.M
Set objConfig = Server.CreateObject("CDO.C
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.
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
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.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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>
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>
ASKER
hi
as you see i found a tool who solve my dude
thanks a lot
as you see i found a tool who solve my dude
thanks a lot
is the file this.asp in the location that is shown in the error message?
is the security on it ok?