Flash - .ASP e-Mail problem

I’m trying to create a simple mailto function from a Flash movie, but have problems passing to a simple ASP page. I was following Kirupa’s Tut in php, and figured it would have translated over to ASP fairly easily. I’m using a CDONTS mailscript in ASP, and for some reason when I try and submit from inside my movie I never get a response back, nor does my flash movie frame advance. Code is the same in the flash movie as the Tut is, so I figure I must be doing something wrong with my ASP or how Flash passes to it.

Attached are my source files, take a look and please lend me a hand! Thanks!

–Isis

i think i know why yours ins’t working but i didn’t get a chance to test it.

this is the code i use for flash/asp emails


<% @language="VBSCRIPT" %>

<%

	Dim myMail, myBody
        
        myBody = "Name: "& request.form("name") & vbcrlf
        myBody = myBody & "Email: "& request.form("email") & vbcrlf
	
        myBody = myBody & "Message: "& vbcrlf & request.form("message")

	Set myMail = CreateObject("CDONTS.NewMail")

	myMail.BodyFormat=1
	myMail.MailFormat=1
	myMail.From=request.form("yemail")
	myMail.To="youremail"
	myMail.Subject="Your Subject"
	myMail.Body=myBody
	myMail.Send

	set myMail=nothing

%>

Works! Thanks a bunch!

–Isis

no problem

cdonts is the old standard. i use cdo.message is the way to go now :wink:

everyone keeps saying that. i haven’t really been using ASP at all lately, so i guess i’m out of the loop. but i always have used CDONTS and will until i hear a reason why i shouldn’t.

so any light u have to shed on this topic please do


[font=Verdana, Arial, Helvetica, sans-serif][size=2]
<% 
sch = "http://schemas.microsoft.com/cdo/configuration/" 
 
Set cdoConfig = Server.CreateObject("CDO.Configuration") 
 
With cdoConfig.Fields 
.Item(sch & "sendusing") = 2 ' cdoSendUsingPort 
.Item(sch & "smtpserver") = "127.0.0.1"
.update 
End With 
 
Set cdoMessage = Server.CreateObject("CDO.Message") 
 
With cdoMessage 
Set .Configuration = cdoConfig 
.From = "your@emailaddy.com" 
.To = "your@emailaddy.com" 
.Subject = "Sample CDO Message" 
.TextBody = "This is a test for CDO.message" 
.Send 
End With 
 
Set cdoMessage = Nothing 
Set cdoConfig = Nothing 
%>
[/size][/font]
 

This is an email script i found using cdosys instead of cdonts.

CDONTS is old, unsupported, discontinued, weak, and ill-advised.
CDOSYS is the antithesis of CDONTS.

Because it is unsupported i found it impossible to use on my w2k3 server. I’ll see if i can find some topics else where you guys can look at.