Why this SEND EMAIL is not working?
Posted: Mon Sep 03, 2007 9:25 am
feyd | Please use
the file lista.lst has only this inside:
alexvvv@hotmail.com|lisawebs@yahoo.com|
the whole thing is in usa21.net/maillist
thanks!
lisawebs@yahoo.com
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have a set of codes to manage a simple mail list,
everything's fine, except for this piece to send an email to each address,
I can't figure out why this is not working,
it doesn't give an error, but the no emails are sentCode: Select all
<html><head><title>sending....</title></head><body>
<?
$addresses = file("data/lista.lst");
for ($index=0; $index < count($addresses); $index++)
{
$Email = "$addresses[$index]";
mail("$Email","Welcome...","text here","From: IN21\nReply-To: alex@usa21.net");
}
?>
Your message was sent!
<br><br><a href="index.php3">Home</a>.
</body></html>alexvvv@hotmail.com|lisawebs@yahoo.com|
the whole thing is in usa21.net/maillist
thanks!
lisawebs@yahoo.com
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]