TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

does this look right?

Page: 1 Reply
Oct 10th 2002#73178 Report
Member since: Feb 14th 2002
Posts: 619
[PHP]//trying to get a form that will send directly to my email through the site without using a primary email such as eureka or outlook express

$returnurl = "www.gmeternal.com";
$email = "sir_ant88@hotmail.com";
$emailsubject = "gmeternal.com App Form";
$forminfo = "name: ".$name."\n"
.email: ".$thereemail."n"
.info: ".$message."\n";

$fromemail = " [email]sendmail@gmeternal.com[/email]";

mail($email, $emailsubject, $forminfo, $formemail);
?>






[/PHP]
Reply with Quote Reply
Oct 10th 2002#73179 Report
Member since: Feb 14th 2002
Posts: 619
the actual html form is in a seperate file but both will be put in the same directory.
Reply with Quote Reply
Oct 10th 2002#73203 Report
Member since: Apr 1st 2002
Posts: 1487
this should work. try it.
[PHP]
//trying to get a form that will send directly to my email through the site without using a primary email such as eureka or outlook express

$returnurl = "www.gmeternal.com";
$email = "powerfulsquid@webimpulse.net";
$emailsubject = "gmeternal.com App Form";
$forminfo = "name: ".$name."\nemail: ".$thereemail."\ninfo: ".$message."\n";

$fromemail = " [email]sendmail@gmeternal.com[/email]";

mail($email, $emailsubject, $forminfo, $formemail);

echo "





";
?>
[/PHP]

EDIT: sidez, he also has a parse error in his $forminfo, which i fexed. so just take the header sidez put in and put it in this one and it should be fine.

EDIT2: turns out sidez deleted his post :-/ :confused:
Reply with Quote Reply
Oct 10th 2002#73204 Report
Member since: Mar 20th 2001
Posts: 3367
OR skip HTML altogether

[php]
//trying to get a form that will send directly to my email through the site without using a primary email such as eureka or outlook express

$returnurl = "http://www.gmeternal.com";
$recipient = "powerfulsquid@webimpulse.net";
$emailsubject = "gmeternal.com App Form";
$email = "name: ".$name."\nemail: ".$thereemail."\ninfo: ".$message."\n";

$fromemail = " [email]sendmail@gmeternal.com[/email]";

mail($email, $emailsubject, $forminfo, $formemail);
header("Location: $returnurl");

?>
[/php]
Reply with Quote Reply
Oct 10th 2002#73205 Report
Member since: Mar 20th 2001
Posts: 3367
Heh.. noticed that when you posted, so I delete mine, copied yours, but with the header code
Reply with Quote Reply
Oct 10th 2002#73206 Report
Member since: Apr 1st 2002
Posts: 1487
sidez, you're scaring me. lol...i post, see your post before mine, edit mine, done editing, see yours is gone, edit number 2, done editing, see your post back again with the fixed parse error and the header included. use sidez's, his is better only cuz of the header inclusion :p
Reply with Quote Reply
Oct 10th 2002#73207 Report
Member since: Apr 1st 2002
Posts: 1487
Originally posted by sidez
Heh.. noticed that when you posted, so I delete mine, copied yours, but with the header code
yea, and with an 'l' at the end of the header. :D
Reply with Quote Reply
Oct 10th 2002#73211 Report
Member since: Mar 20th 2001
Posts: 3367
Ops.. Hit the "l" instead of ";" :D
Reply with Quote Reply
Oct 10th 2002#73213 Report
Member since: Apr 1st 2002
Posts: 1487
yea, SUUUURE! :p
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum