rabidvibes Posted September 2, 2007 Share Posted September 2, 2007 I got this script called pimpz uk installed and running but when people register and such it doesn't email out. the only file I can find is func.php that has anything to do with email and its this? <? include("setup.php"); function fetch ($query) { $data = mysql_fetch_row(mysql_query($query)); return $data[0]; } function commas ($str){ return number_format(floor($str)); } function mail_1 ($subject, $message, $email){ mail("$email", "$subject", $message, "From: admin@rabid-vibes.com\r\n" ."Reply-To: admin@rabid-vibes.com\r\n" ."X-Mailer: PHP/" . phpversion()); } function mail_2 ($subject, $message, $email){ $MP = "/usr/sbin/sendmail -t"; //$MP .= " -f admin@rabid-vibes.com"; $fd = popen($MP,"w"); fputs($fd, "To: $email\n"); fputs($fd, "From: PimpAttack <admin@rabid-vibes.com>\n"); fputs($fd, "Subject: $subject\n"); fputs($fd, "X-Mailer: PHP4\n"); fputs($fd, $message); pclose($fd); } function dayhour ($online){ global $time; $difference=$online-$time; $num = $difference/86400; $days = intval($num); $num2 = ($num - $days)*24; $hours = intval($num2); if($days != 0){echo"$days days, ";}if($hours != 0){echo"$hours hours. ";} } function countdown ($online){ global $time; $difference=$online-$time; $num = $difference/86400; $days = intval($num); $num2 = ($num - $days)*24; $hours = intval($num2); $num3 = ($num2 - $hours)*60; $mins = intval($num3); $num4 = ($num3 - $mins)*60; $secs = intval($num4); if($days != 0){echo"$days days, ";} if($hours != 0){echo"$hours hours, ";} if($mins != 0){echo"$mins mins, ";} if($secs != 0){echo"$secs secs. ";} } function securepic( $var ){ if(strstr($var,"diamondswebpages")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"http://mywebpages.comcast.net/wahtever/")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"http://thunder.prohosting.com/~csears/WeBmAsTeR.swf")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"http://www.rentyman.com/temp/rentyman.swf")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"http://www.millsracing.com/images/fatguyeating.gif")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"http://www.redcoat.net/pics/tubgirl.jpg")) {$var="gfx/media/banned.gif";} elseif(strstr($var,"pimpwarhelp.com")) {$var="gfx/media/banned.gif";} else{$var=$var;} return $var; } ?> can you help me Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/ Share on other sites More sharing options...
d22552000 Posted September 2, 2007 Share Posted September 2, 2007 if you are under windows you ahve to use smpt. does your host have a proper smpt? and if you are under linux make sure the mail funciton works properly, Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339607 Share on other sites More sharing options...
rabidvibes Posted September 2, 2007 Author Share Posted September 2, 2007 and I have no php talent lol Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339608 Share on other sites More sharing options...
rabidvibes Posted September 2, 2007 Author Share Posted September 2, 2007 I am in linux how can I test to make sure its right? Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339609 Share on other sites More sharing options...
rabidvibes Posted September 2, 2007 Author Share Posted September 2, 2007 I have vbulletin and it emails with no problems Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339610 Share on other sites More sharing options...
d22552000 Posted September 2, 2007 Share Posted September 2, 2007 h.. then why not set the script to call on vb's mail script just include "includes/mail.php" and call mail(). Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339611 Share on other sites More sharing options...
rabidvibes Posted September 2, 2007 Author Share Posted September 2, 2007 could you tell me how to do that I wouldn't mind Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339612 Share on other sites More sharing options...
rabidvibes Posted September 2, 2007 Author Share Posted September 2, 2007 if someone could fix this I wouldn't mind paying for it. Quote Link to comment https://forums.phpfreaks.com/topic/67602-script-not-emailing-please-help/#findComment-339621 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.