lisawebs Posted August 30, 2007 Share Posted August 30, 2007 there are 2 email addresses on lista.lst but the emails are never sent, but no error, why is this? <html><head><title>Updating file....</title></head><body> <? $addresses = file("data/lista.lst"); for ($index=0; $index < count($addresses); $index++) { mail("$addresses[$index]","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net"); } ?> Your message was sent! <br><br> <a href="index.php3">Home</a>. </body></html> Quote Link to comment Share on other sites More sharing options...
Jessica Posted August 30, 2007 Share Posted August 30, 2007 Try adding some debugging code. Such as: <?php $addresses = file("data/lista.lst"); print_r($addresses); for ($index=0; $index < count($addresses); $index++) { if(mail($addresses[$index],"Welcome...","text here","From: IN21\nReply-To: alex@usa21.net")){ print 'mailed to '.$addresses[$index]; }else{ print 'not mailed to '.$addresses[$index]; } } ?> Quote Link to comment 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.