HDFilmMaker2112 Posted May 29, 2011 Share Posted May 29, 2011 $sql="SELECT * FROM $tbl_name3 WHERE review_show='n'"; $result=mysql_query($sql); $num_results=mysql_num_rows($result); if($num_results > 1){ $message="You have ".$num_results." reviews unapproved."; mail('[email protected]','GHP Reviews', $message, 'From: [email protected]'); } $sql2="SELECT * FROM $tbl_name4 WHERE rma_issued='n'"; $result2=mysql_query($sql2); $num_results2=mysql_num_rows($result2); if($num_results2 > 1){ $message="You have ".$num_results2." RMA Numbers Requested."; mail('[email protected]','GHP RMA Number Requests', $message, 'From: [email protected]'); } The reviews email is being sent, however, the RMA email is not. EDIT: Nevermind, $num_results and $num_results2 should have been > 0 not > 1. Quote Link to comment https://forums.phpfreaks.com/topic/237777-email-script-will-be-cron-job-not-sending-email/ 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.