firedrop84 Posted March 25, 2006 Share Posted March 25, 2006 I am trying to send email from an array. It's not sending any email. I dno't know why ?!?! Does anyone knows why this is my code. $to = "jessiegao42@hotmail.com"; $subject = "Test"; for ($i = 0; $i < 12; $i++) { $message = "$Data[$i]"; } //$headers = "From: firedrop@gmail.com"; if (mail($to,$subject,$message)) { print "Email Send"; } else { print "Email Failed"; } //$mailsend = mail($to,$subject,$message); print "<br> Thank you. We will be contact you soon."; Quote Link to comment https://forums.phpfreaks.com/topic/5760-sending-email/ Share on other sites More sharing options...
Gast Posted March 25, 2006 Share Posted March 25, 2006 The easiest thing to do to start with is to simply check if the mail() function with some test values sends correctly. Then try commenting out lines or changing values until you can find out why it wont send. Quote Link to comment https://forums.phpfreaks.com/topic/5760-sending-email/#findComment-20641 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.