Jump to content


Photo

sending email


  • Please log in to reply
1 reply to this topic

#1 firedrop84

firedrop84
  • Members
  • PipPipPip
  • Advanced Member
  • 49 posts

Posted 25 March 2006 - 10:32 AM

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.";

#2 Gast

Gast
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts
  • LocationSouth East England

Posted 25 March 2006 - 06:22 PM

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.
OS and Internet Specs:
Windows XP (with SP2), 1680x1050, PHP 4, MySQL 3, Internet Explorer 6 &7 /FireFox 2.0/Opera 9.2

Tutorials:
Simple Introduction to AJAX and XMLHttpRequest
Creating Live Data with AJAX Making a Google Suggest like application




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users