<?php
$to = 'user@example.com';$subject = "Beautiful HTML Email using PHP by CodexWorld";
$htmlContent = '
<html>
<head>
<title>Welcome to CodexWorld</title>
</head>
<body>
<h1>Thanks you for joining with us!</h1>
<table cellspacing="0" style="border: 2px dashed #FB4314; width: 300px; height: 200px;">
<tr>
<th>Name:</th><td>CodexWorld</td>
</tr>
<tr style="background-color: #e0e0e0;">
<th>Email:</th><td>contact@codexworld.com</td>
</tr>
<tr>
<th>Website:</th><td><a href="http://www.codexworld.com">www.codexworld.com</a></td>
</tr>
</table>
</body>
</html>';
// Set content-type header for sending HTML email$headers = "MIME-Version: 1.0" . "\r\n";$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
// Additional headers$headers .= 'From: CodexWorld<sender@example.com>' . "\r\n";$headers .= 'Cc: welcome@example.com' . "\r\n";$headers .= 'Bcc: welcome2@example.com' . "\r\n";
// Send emailif(mail($to,$subject,$htmlContent,$headers)):
$successMsg = 'Email has sent successfully.';
else:
$errorMsg = 'Email sending fail.';
endif;?>
Wednesday, November 2, 2016
Sample Beautifull Send Mail PHP
Subscribe to:
Post Comments (Atom)
phprunner view custom filed status
if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...
-
if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...
-
Sample Php Runner Popup Center Page Sample JS <script type="text/javascript"src="http://code.jquery.com/jquery...
-
<?php if(isset($_POST['submit'])) { $url = $_POST['url']; $check = substr($url,0,11); if($check == "htt...
No comments:
Post a Comment