-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Hello,
i have tried to make my email with this,
but that's not working
i m using 3 differents client mail 👍
Thunderbird, outlook 2007 and android device.
and i have three different vision of the mail:/
this is the code i used, what ' do u think please ?
<?php
$to = "demo@mail.com";
$subject = "Demo";
$headers = "";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$corpMail = "";
$corpMailTitle = "Day 1 - 25/05/2014";
$corpMailBody = '
<div class="alert alert-success"> Ceci est message !</div>
<div class="alert alert-info">Ceci est message !</div>
<div class="alert alert-warning">Ceci est message !</div>
<div class="alert alert-danger">Ceci est message !</div>';
$corpMail = '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>' . $corpMailTitle . '</title>
<style media="all" type="text/css">
' . file_get_contents("Stylesheet/bootstrap-email.min.css") . '
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td class="navbar navbar-inverse" align="center">
<!-- This setup makes the nav background stretch the whole width of the screen. -->
<table width="650px" cellspacing="0" cellpadding="3" class="container">
<tr class="navbar navbar-inverse">
<td colspan="4"><a class="brand" href="#">Lien Internet</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">
<table width="650px" cellspacing="0" cellpadding="3" class="container">
<tr>
<td>' . $corpMailBody . '</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" align="center">
<table width="650px" cellspacing="0" cellpadding="3" class="container">
<tr>
<td>
<hr>
<p>Github Demo - Demo Github</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>';
mail($to, $subject, $corpMail, $headers);
?>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels