Jump to content

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/67275-why-this-is-not-working/
Share on other sites

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];
}
}
?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.