By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,117 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

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

P: 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
Share this Question
Share on Google+
2 Replies


P: 2
by the way, I'm running server 2003 on my webserver.......
Oct 2 '06 #2

sashi
Expert 100+
P: 1,754
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

Post your reply

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