# Flash - .ASP e-Mail problem

**URL:** <https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612>\
**Category:** Uncategorized\
**Created:** [May 28, 2004, 9:45pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612 "2004-05-28T21:45:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isis](https://avatars.discourse-cdn.com/v4/letter/i/85f322/32.png) [@Isis](https://forum.kirupa.com/u/Isis)\
**Post date:** [May 28, 2004, 9:45pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/1 "2004-05-28T21:45:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 9:50pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/2 "2004-05-28T21:50:18Z")

</div>

> [@Isis](#):
>
> 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

```auto

<% @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

%>

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 10:43pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/3 "2004-05-28T22:43:22Z")

</div>

Works! Thanks a bunch!

–Isis

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 11:40pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/4 "2004-05-28T23:40:40Z")

</div>

no problem

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 11:49pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/5 "2004-05-28T23:49:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 11:52pm UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/6 "2004-05-28T23:52:37Z")

</div>

> [@MissionSix](#):
>
> cdonts is the old standard. i use cdo.message is the way to go now 😉

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 12:06am UTC](https://forum.kirupa.com/t/flash-asp-e-mail-problem/111612/7 "2004-05-29T00:06:53Z")

</div>

```auto

[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.
