# Form Mail

**URL:** https://forum.kirupa.com/t/form-mail/12031
**Category:** flash
**Created:** [January 25, 2003, 7:04pm UTC](https://forum.kirupa.com/t/form-mail/12031 "2003-01-25T19:04:00Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Kidd\_Flash](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@Kidd\_Flash](https://forum.kirupa.com/u/Kidd_Flash)
#### Post date: [January 25, 2003, 7:04pm UTC](https://forum.kirupa.com/t/form-mail/12031/1 "2003-01-25T19:04:00Z")

</div>

Hey, my form mail is not working…I made the script executable and I have it in CHMOD Mode…

Now, on my button that I have the load variables action on , do I have to list what variables I want loaded with the form? Or will Flash know to load only the variables in the movie clip that my mailform is in?

In any case, can someone describe what I need to do? Thanks…

Kidd Flash

---

<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: [January 25, 2003, 10:48pm UTC](https://forum.kirupa.com/t/form-mail/12031/2 "2003-01-25T22:48:39Z")

</div>

what did you chmod it to and did you tranfer it in ascii or binary?

---

<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: [January 26, 2003, 3:11am UTC](https://forum.kirupa.com/t/form-mail/12031/3 "2003-01-26T03:11:21Z")

</div>

it’s on CHMOD 755…it’s a script from matt’s Archive…do I need to list the variables on the perl script that I want to receive the values of? In other words do I need to lsit all my form mail variables like Name subject on the perl script, or when I load the variables from the form, the perl script will receive all variables and values from the timeline that the submit button is on?

Thanx

---

<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: [January 26, 2003, 3:17am UTC](https://forum.kirupa.com/t/form-mail/12031/4 "2003-01-26T03:17:30Z")

</div>

Lots of people use matt’s  
yes to all, but if I remeber right the script has great comments on what to do, if you are new to perl the most common probs are absolute path and sendmail and you need to know where the perl is on the server, if you know unix use the whereis.  
In flash its easier than html. Just make sure you use the same variables and check the send variables box. Like I said, I have a great quick and dirty fix for that in perl if you want it.

---

<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: [January 26, 2003, 5:37am UTC](https://forum.kirupa.com/t/form-mail/12031/5 "2003-01-26T05:37:30Z")

</div>

yeah, I could use whatever you got on perl to get my form working properly. The comments in the Matt scripts don’t mention whether or not I have to list the variables of the variable of my mail form on the perl script…I followed the instructions to no avail. I’ll appreciate whatever you can offer…  
Kidd Flash

---

<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: [January 26, 2003, 5:49am UTC](https://forum.kirupa.com/t/form-mail/12031/6 "2003-01-26T05:49:19Z")

</div>

ok no problem  
but first you need to find out two things:

1. The command line for perl
2. The command line for your sendmail program

Get this from your domian service provider ask them directly!  
and I will write the perl code for you

---

<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: [January 27, 2003, 11:10pm UTC](https://forum.kirupa.com/t/form-mail/12031/7 "2003-01-27T23:10:15Z")

</div>

Here is the path to Perl:

#!/usr/bin/perl -wT

Here is the path to the mail program:

$mailprog = ‘/usr/lib/sendmail -oi -t’;

I appreciate any help…

---

<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: [January 28, 2003, 3:14am UTC](https://forum.kirupa.com/t/form-mail/12031/8 "2003-01-28T03:14:37Z")

</div>

here it is

---

<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: [February 2, 2003, 4:52am UTC](https://forum.kirupa.com/t/form-mail/12031/9 "2003-02-02T04:52:56Z")

</div>

Hey Flashers, I’m not getting my perl script, or cgi script to work. For some reason the server-side scripts are not catching the form or e-mailing the form to my address. Here are my codes:

On the time line of the form, I have these codes:

function SendTheForm (mailerMC){

SendMail = new LoadVars ();  
SendMail.attn = mailerMC.attn.text;  
SendMail.from = mailerMC.from.text;  
SendMail.subject=mailerMC.subject.text;  
SendMail.telno=mailerMC.telno.text;  
}

SendMail.onLoad = function (success) {  
if (success) {  
response=“Your message was delivered”;  
}else{  
response =“Delivery failed; please try again or send your more conventionally”;  
}  
}

Now, on your button, I have this code:

myButton.onRelease = function () {  
SendMail.send(“[http://www.mywebsite.com/cgi-bin/myform.pl](http://www.mywebsite.com/cgi-bin/myform.pl)”, SendMail, “POST”) ;  
}

Now, my problem is the script…everyone I use, perl or cgi, is not working…can I get any further assistance…thanx in advance.

by the way…special thanks to rynoe for his aid.

---

<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: [February 2, 2003, 6:42am UTC](https://forum.kirupa.com/t/form-mail/12031/10 "2003-02-02T06:42:20Z")

</div>

No problem! was a pleasure!

By the way my friend, perl can be a major beeawwch…

That’s way everyone loves php so much, but if you get past that first hurdle, unix loves perl!
