Formmail.cgi & actionscript 2.0 question  
Author Message
Sai_Zelion





PostPosted: 2006-3-30 11:44:23 Top

flash-actionscript, Formmail.cgi & actionscript 2.0 question What's up everyone! I'm having a terrible time trying to find out why Formmail
is not receiving the "recipient" variable from flash properly. I never had a
problem until now. Just recently, i noticed i was not getting emails from
through my website, and then i did a mock email to myself- through my website
and noticed an "Error: No recipent" notification! I have never changed my code,
and i went and verified that my code is the same and i'm puzzled at this
problem. Anyway, here's the code:
//---------------------<send form LoadVars>------------------\\
var gatherForm:LoadVars = new LoadVars () ;

function sendForm() {
gatherForm.recipient = "email***@***.com";
gatherForm.visitor_comments = contactForm.userComments.text;
gatherForm.visitor_name = contactForm.userName.text;
gatherForm.visitor_email = contactForm.userEmail.text;
gatherForm.visitor_primaryphone = contactForm.userPhone.text;

gatherForm.send ("/cgi-bin/formmail.cgi", "POST");
//---------------------------------</send form
LoadVars>----------------------------\\

As a note: in flash, the text input field that holds my email address, already
has the instance name of "recipient." That was something I already double
checked. I keep getting the Error: No Recipient for some reason! Finally, i
called my web host provider andthey did a test on the formmail.cgi script and
it's working fine (the link to the html test of the formmail.cgi script-
www.iibyandre.com/testform.htm).

Thanks for any help guys.

 
mostlyliquid





PostPosted: 2006-3-30 13:48:00 Top

flash-actionscript >> Formmail.cgi & actionscript 2.0 question Seems like you have recipient hardcoded into the test form, which
should mean that you dont need to pass it from flash. I ran packetmon
and it seems like you also passed emailto as well as recipient from
flash, not sure whats going on there. But if it just stopped working i
would see if the host updated their servers recently and if so what
they did, it may be a bug. It seems like your flash code is cool. Also
I guess there may be some cross-domain thing...maybe change the
recipient address to match the domain from which its being sent. Not
sure if any of this will help...

-J