/* recipients */
$to = "me@example.net.au" . ", " ; // note the comma
$to .= "$email";
/* subject */
$subject = "Welcome to example";
/* message */
$message = '
<modnote: stripped static html from here - jatar_k>
<p><strong><span class="style27"><span class="style31">CONGRATULATIONS!<br>
<br>
</span></span></strong><span class="style26"><strong><font size="2">((((((((WHAT DO I PUT HERE)))))))) >>>>>>$name<<<<<<<<<< of $clubname has been registered as Entry
Number (Entry Number) in the competition to win $1500 worth of clothing
& promotional products drawn on the 31 st of December 2004. $clubname will be advised by email to $email
of the winner by no later than the 7 th of January 2005</font></strong></span><font size="2"><strong><span class="style17">.</span>
<br>
</strong></font><strong><span class="style27"><span class="style19"><font size="1">If
any information shown is incorrect, please (click here) to advise us
of any changes.</font></span></span></strong>
<p><strong><span class="style18"><font size="+2">GOOD LUCK!</font> </span></strong>
<h2 class="style20"><span class="style27">PRINT OUT THIS EMAIL</span>
</h2>
<p class="style20"><strong><span class="style18"><font size="+2">THIS
EMAIL IS WORTH CASH!</font></span></strong> </p>
<p align="center" class="style27"><span class="style28"><span class="style29"><font size="2"><strong>Keep
this print out</strong> along with any other entries from (Organisation
or Club Name) to use within 12 months of the date of this email. Maximum
redeemable value for </font></span><span class="style28"><span class="style29"><font size="2">(Organisation
or Club Name) </font></span></span><span class="style29"><font size="2">is
$25 for 25 entries.</font></span></span></p>
<p align="center" class="style27"><span class="style22">How Can
(Organisation or Social Club Name)Further Benefit?</span></p>
</div>
<ul>
<modnote: stripped static html from here - jatar_k>
</html>
';
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "To: Rudy <me@example.net.au>\r\n";
$headers .= "From: example <me@example.com>\r\n";
$headers .= "";
$headers .= "";
/* and now mail it */
mail($to, $subject, $message, $headers);
//THIS IS THE END OF THE PHP CODE?>
Sorry i know that is a lot of code but i didnt know if i could shorten it or not and yes the html is bad! but this is a friends work and he wants me to fix it and time is of the essence!
If anyone could help me out it would be great!
Thanks again.
[edited by: jatar_k at 4:49 pm (utc) on Aug. 20, 2004]
[edit reason] heavily edited code [/edit]