PDA

View Full Version : problem with php mailer


vosgien
05-01-2002, 03:27 PM
Hi,
I have used the tutorial supplied by Jesse to set up a contact form on my site, the file is called index.php3 and has this code:
<?php
mail("SteveAtbCats@aol.com",$catb,$books,$ila,$wdes,$cdr,$name,$CoName,$telNo ,$message,"From:PHPMailer\nReply-To:$from\nX-Mailer:PHP/".phpversion());
?>
The send button has this code :
on (release) {
if (name eq "" or from eq "") {
notDone = "Please complete feilds marked with *";
} else {
lineAdapt();
loadVariablesNum ("index.php3", 0, "POST");
gotoAndStop (2);
}
}

However when I test the site nothing happens, I get no mail in my SteveAtbCats@ aol.com box
Can anyone tell me why ?........please,

Vosgien

p.s. thanks for the tute Jesse - I have put a link on the site to actionscript.org and will post the site in site check when all is well

Jesse
05-02-2002, 06:15 AM
This is so common a problem that I think I'll annotate the tutorial. You must contcatenate all your variables before you try to mail them, and send them as one variable when you call the mail() function, because it takes only one argument for the body of the message. See www.php.net/mail .

vosgien
05-02-2002, 10:56 AM
Hi Jesse,
A small (and silly) thing to over look - its sorted now.

Thank You