Graphic Design shadow to enhance presentation of images.
Graphic Design shadow to enhance presentation of images.

Web Design - Tips, Tricks and Programmng

Sending emails with PHP

Return to Forum Home Page

Forum

Return to Topic

Return to Topic

Login to Forum

Login to Forum

Register to access Forum

Register to access Forum

Previous Thread Return to Topic Next Thread
Author Message

mannyabc

Date Joined:
Oct 26, 2011

Posts:
1

Posted: Wed Oct 26, 2011 03:15 PM

Subject: Sending emails with PHP

This code generates an email. When this email is viewed in Windows Live Hotmail it spits out the code itself not the html content.

$to = "your_email@yahoo.ca";
$subject = "PUT_SUBJECT_HERE";
$mail_body = '

Put HTML content here with variables from PHP if you like
Variable display Example: ' . $subject . '

';
$headers = "From:youremail@yoursite.comrn";
$headers .= "Content-type: text/htmlrn";
mail($to, $subject, $mail_body, $headers);
?>

Return to Forum Home Page

Forum

Return to Topic

Return to Topic

Login to Forum

Login to Forum

Register to access Forum

Register to access Forum