OK, thanks Karl.

Paul

Karl DeSaulniers wrote:
Here is a quick one I found that you can expand on.
You can even drop in your own HTML.
create a php file called sendEmail.php or something to that effect.

<?
    //change this to your email.
    $to = "[email protected]"; //can assign a form variable here too
    $from = "[email protected]";  //can assign a form variable here too
$subject = "Hello! This is an HTML email"; //can assign a form variable here too

    //begin of HTML message
    $message = <<<EOF
<html>
  <body bgcolor="#DCEEFC">
    <center>
        <b>Looook!!! I am receiving an HTML email......</b> <br>
        <font color="red">Thanks!</font> <br>
        <a href="http://www.yoursite.com/";>yoursite.com</a>
    </center>
<br><br>*** Now you Can send HTML Email <br> Regards<br>MOhammed Ahmed - Palestine
  </body>
</html>
EOF;
   //end of message
    $headers  = "From: $from\r\n";
    $headers .= "Content-type: text/html\r\n";

    //options to send to cc+bcc
    //$headers .= "Cc: [email][email protected][/email]";
    //$headers .= "Bcc: [email][email protected][/email]";

    // now lets send the email.
    mail($to, $subject, $message, $headers);

    echo "Message has been sent....!";
?>

Found it here : http://www.webhostingtalk.com/showthread.php?t=416467

HTH,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to