I'm trying to write php codes that will capture 10 friend's name and email addresses and then send out email to them. Below is the php codes that i use .. but they don't work out. I don't receive any emails. May someone guide me a hand? Thanks in advance.
<?php
// Subject of email
for ($i= 1; $i <=10; $i++){
$subject = "Member Get Member, Go For Holiday Promotion!";
// Headers
$headers = "From: malaysia@visitholiday.com.my\n"; // From address
$headers .= "Reply-To: malaysia@visitholiday.com.my\n"; // Reply-to address
$headers .= "Organization: Visit Holiday\n"; // Organisation
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Type
// Design of the email
$design = "<html><head><title>Visit Holiday- Member Get Member, Go For Holiday Promotion!</title></head><body>
<font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">Dear ($friend[$i]),<br><br>
<b>Visit Holiday\"Member Get Member, Go For Holiday Promotion\"</b><br><br>
To join the Member Get Member, Go For Holiday Promotion!<br>
Please forward this message to 10 of your friends.<br><br>
Sincerely yours,<br>Visit Holiday, <i>Your Online Tourism Guide</i></font>
</body></html>";
// Send the email
mail(($email_address[$i]), $subject, $design, $headers);}
?>