Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working #8

Open
ghost opened this issue May 26, 2014 · 0 comments
Open

Not working #8

ghost opened this issue May 26, 2014 · 0 comments

Comments

@ghost
Copy link

ghost commented May 26, 2014

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 = "[email protected]";
$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);
?>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants