TELL A FRIEND
Sorry, please go back and make sure that you have your name and e-mail and at least one friend\' e-mail filled in. '; } else { $letter = "Hope all is well...\n\nI thought you may want to check out Zen Mask at http://www.zenmask.com.\n\n\n$name\n\n\n"; $tally = 0; for ($i=1; $i<=5; $i++) { $temp = "email".$i; $mail = $$temp; $pos = strpos($mail, "@"); if ($pos !== false) { $tally++; mail("$mail", "Zen Mask", "$letter", "From: $email"); //write to file } } if ($tally == 0) { echo '
Sorry, please go back and check that your friends\' e-mail addresses are in the correct format.
'; } else { if ($tally > 1) { $added = "$tally invites have"; } else { $added = "one invite has"; } echo '
Thank you. Your '.$added.' been sent. We hope you continue to enjoy Zen Mask.
'; } } } else { echo '
This will send a simple note from you saying to check out Zen Mask.

NAME
YOUR E-MAIL
FRIENDS\' E-MAILS

'; } ?>