note 119678 added to index
| From: | webtechhelp dot org at gmail dot com | Date: | Mon, 01 Aug 2016 17:41:10 +0000 |
| Subject: | note 119678 added to index | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206144@lists.php.net to get a copy of this message | ||
Email Send:
<?php
$to = "somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";
// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";
mail($to,$subject,$message,$headers);
?>
http://webtechhelp.org
----
Server IP: 72.52.91.14
Probable Submitter: 182.75.57.229
----
Manual Page -- http://php.net/manual/en/index.php
Edit -- https://master.php.net/note/edit/119678
Del: integrated -- https://master.php.net/note/delete/119678/integrated
Del: useless -- https://master.php.net/note/delete/119678/useless
Del: bad code -- https://master.php.net/note/delete/119678/bad+code
Del: spam -- https://master.php.net/note/delete/119678/spam
Del: non-english -- https://master.php.net/note/delete/119678/non-english
Del: in docs -- https://master.php.net/note/delete/119678/in+docs
Del: other reasons-- https://master.php.net/note/delete/119678
Reject -- https://master.php.net/note/reject/119678
Search -- https://master.php.net/manage/user-notes.php