Jump to content

sending email


firedrop84

Recommended Posts

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 = "[email protected]";
$subject = "Test";

for ($i = 0; $i < 12; $i++)
{
$message = "$Data[$i]";
}

//$headers = "From: [email protected]";

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.";
Link to comment
https://forums.phpfreaks.com/topic/5760-sending-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.