Solved

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

Posted on 2012-04-12
7
384 Views
Last Modified: 2012-08-14
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
0
Comment
Question by:tenriquez199
  • 4
7 Comments
 
LVL 8

Expert Comment

by:X-treem
ID: 37838544
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?
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 37838585
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.
0
 
LVL 1

Author Comment

by:tenriquez199
ID: 37838612
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
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Accepted Solution

by:
tenriquez199 earned 0 total points
ID: 37839886
hi

i solve it with tool provided by freecontactform.com

thanks

http://www.freecontactform.com/free.php
0
 
LVL 1

Author Comment

by:tenriquez199
ID: 37854322
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>
0
 
LVL 1

Author Comment

by:tenriquez199
ID: 37854323
hi

as you see i found a tool who solve my dude

thanks a lot
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question