473,406 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ASP email generation page not working??? Help????

2
I'm setting up a flash form that calls an asp page that generates an email containing contact info. I'm pretty sure my coding. Where I think my problem is the statement that creates an object using "CDO" which I put in in bold. Here is my asp code:

// ActionScript Document

<%


' declare variables
Dim EmailFrom
Dim EmailTo
Dim Subject
Dim nameTX
Dim Email
Dim Message

' get posted data into variables
EmailFrom = Trim(Request.Form("EmailFrom"))
EmailTo = "jmcfarlen@etmcs.com"
Subject = "Website Feedback"
nameTX = Trim(Request.Form("Name"))
Email = Trim(Request.Form("Email"))
Message = Trim(Request.Form("Message"))

' validation
Dim validationOK
validationOK=true
If (Trim(EmailFrom)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect("error.html" & EmailFrom)

' prepare email body text
Dim Body
Body = Body & "nameTX: " & nameTX & VbCrLf
Body = Body & "Email: " & Email & VbCrLf
Body = Body & "Message: " & Message & VbCrLf

' send email
Dim mail
Set mail = Server.CreateObject("CDO.NewMail")
mail.To = EmailTo
mail.From = EmailFrom
mail.Subject = Subject
mail.Body = Body
mail.Send

' redirect to success page
Response.Redirect("thankyou.html" & EmailFrom)
%>



I know my server doesn't support PHP. My webserver admin said I can't use CDONTS and to try CDOSYS, but that hasn't worked either. Here is the action script on my flash page calling my asp page:

on (release) {
getURL("contact.asp", "", "POST");
}

Don't think there is a problem there... Help???
Oct 2 '06 #1
2 1988
SonicJ
2
by the way, I'm running server 2003 on my webserver.......
Oct 2 '06 #2
sashi
1,754 Expert 1GB
Hi there,

Kindly refer to below attached link, hope it helps, take care my fren.. :)

http://www.thescripts.com/forum/thread529780.html
Oct 5 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dave in Dallas | last post by:
http://tinyurl.com/a65kn 'Smart' classrooms, ritzy dorms lure 'Millennials' Local colleges are rushing to build high-tech classrooms and plush dormitories for a new breed of students who grew...
0
by: Venus | last post by:
Hello, After trying some ways to do it I wanted to use something like the code below but for some reason is not working (I have to generate the entire form dynamically (not only the controls)):...
0
by: Venus | last post by:
Hello, After trying some ways to do it I wanted to use something like the code below but for some reason is not working (I have to generate the entire form dynamically (not only the controls)):...
0
by: Ashish | last post by:
Iam working on a project that would use web services to transfer business objects around. I worked a little bit with the new SchemaImporterExtension class to tweak the proxy generation, and Iam...
4
by: Ken D. | last post by:
I have an asp page that collects data on referrals. The user inputs the information and selects the rep to receive the referral. My data is being saved to a backend database (SQL) and the user is...
3
by: Darren | last post by:
Not sure if this has been covered before....... I have an issue with an asp.net application running on Windows 2000 server and Windows 2003 server:- The name generation of html objects (ie...
3
by: John K | last post by:
I am trying to eliminate the capability of displaying the details of a web service by disabling WSDL generation in the web.config file. I have made the following changes to the web.config: ...
5
by: Nick Ashley | last post by:
I am wanting to include a message in the footer of my application which displays the server-side page generation time. An example of what I want is at http://p2p.wrox.com/ (This page was generated...
8
by: yimma216 | last post by:
Hi, This is an intranet. I wrote an ASP page to display a list of expired tasks. There is a form in this ASP page to send email notification to people who have expried tasks. Now I want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.