Solved

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

Posted on 2012-04-12
7
369 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 1

Accepted Solution

by:
tenriquez199 earned 0 total points
Comment Utility
hi

i solve it with tool provided by freecontactform.com

thanks

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

Author Comment

by:tenriquez199
Comment Utility
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
Comment Utility
hi

as you see i found a tool who solve my dude

thanks a lot
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now