Hello everyone, I have been searching for days but nobody seems to have the same problem I have (because I am so noob to this, I must be missing something super simple...)

I cannot get a simple form to mail out from flash.

Here is the code that I have in my submit button, courtesy of lynda.com. Problem is they do not explain anywhere how to make it work...
Code:
var gatherForm:LoadVars = new LoadVars();

function sendForm() {
	gatherForm.email_to = "[email protected]";
	gatherForm.visitor_name = contactForm.userName.text;
	gatherForm.visitor_email = contactForm.userEmail.text;
	gatherForm.visitor_comments = contactForm.userComments.text;
	
	gatherForm.send ("/cgi-bin/formmail.pl", "_blank", "POST");
	
	
}



this.contactForm.submitBtn.onRelease = function() {
	
	if (contactForm.userName.text == "" || contactForm.userEmail.text == "" ||
		contactForm.userComments.text == "") {
		gotoAndStop(10);
	} else {
		sendForm();
		gatherForm.visitor_name = contactForm.userName.text;
		gotoAndStop(20);
	
}
}
	
}
I went into my Network Solutions web admin and setup a MySql database named 'blend' with the 4 fields: email_to, visitor_name, visitor_email, visitor_comments.

(I have no idea where I need to refer to this mysql database, I am not even sure if i need it.)

Lastly I downloaded a formmail.pl script (http://scriptarchive.com/formmail.html), made a folder named cgi-bin, and loaded it up to my site.

the processing thing is located at /usr/sbin/sendmail, says network solutions.

This is how I set up the file:
Code:
$mailprog = '/usr/sbin/sendmail -i -t';
@referers = ('myclientsdomain.com','myowndomain.com'); 
@recipients = &fill_recipients(@referers); (left unchanged)
@valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_USER_AGENT'); (left unchanged)
My problem is that nothing really seems to tie together and I have no clue how to test if it is working. This is an error I get after submitting:
Code:
Page Not Found

We cannot locate the page you're looking for. Please check the address and make sure all letters are lowercased with no spaces. You may also move to a different page by using the links in the menu bar above.
I have a client who is really really upset and this is the only thing stopping me from getting paid.

Any help is greatly appreciated. If this post is confusing, can somebody just help me send a simple form from flash? I need people to be able to send in their name, email, and comments. Thats it.


I am also very new to message boards in general. Please understand