473,763 Members | 5,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

2 New Member
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.Fo rm("EmailFrom") )
EmailTo = "jmcfarlen@etmc s.com"
Subject = "Website Feedback"
nameTX = Trim(Request.Fo rm("Name"))
Email = Trim(Request.Fo rm("Email"))
Message = Trim(Request.Fo rm("Message"))

' validation
Dim validationOK
validationOK=tr ue
If (Trim(EmailFrom )="") Then validationOK=fa lse
If (validationOK=f alse) Then Response.Redire ct("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.CreateOb ject("CDO.NewMa il")
mail.To = EmailTo
mail.From = EmailFrom
mail.Subject = Subject
mail.Body = Body
mail.Send

' redirect to success page
Response.Redire ct("thankyou.ht ml" & 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 1997
SonicJ
2 New Member
by the way, I'm running server 2003 on my webserver...... .
Oct 2 '06 #2
sashi
1,754 Recognized Expert Top Contributor
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
1794
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 up with the Internet and were pampered by parents. Xavier University is planning a new campus quadrangle with high-tech
0
349
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)): Can anyone make any suggestions on how to do it ? Thanks
0
1492
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)): Can anyone make any suggestions on how to do it ? Thanks
0
1342
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 sucessfully able to share the Business Types. So far so good.. My Class structure is somewhat like
4
2346
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 receiving a confirmation page after hitting the Submit button. Now, what I need is a way to have an email sent to the rep that is selected in the drop down list on the asp form. I have a SQL table containing the reps and corresponding email...
3
1362
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 input buttons etc) is different between the 2 environments, even though both are running ..net v2.0.50727
3
32152
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: <webServices> <wsdlHelpGenerator href="helpPage.aspx"/> <protocols> <remove name="Documentation" /> </protocols> </webServices>
5
1889
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 in x seconds.) I am aware that I can find this information by adding trace="true" to the page directive, but is there any way to access the information otherwise (as this is something I want incorporated into the design, not to be used for...
8
3771
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 the email to be automatically generated, by scheduled task or a trigger. However, I do not know how to do it from here? I was told that I needed to write a script. Please help.
0
9564
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9387
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.