Partage
  • Partager sur Facebook
  • Partager sur Twitter

PhpMailer: Message en Html

PhpMailer

Sujet résolu
    22 janvier 2020 à 12:45:43

    Bonjour

    J'utilise PhpMailer pour envoyer des message mais j'ai un soucie à savoir qu'à la réception, j'ai que le titre sauf si je insert la réponse directement dans la partie

    body de façon

    $mail->Body     = '
    
    <div style="color:white; width:550px; margin-left:10%; padding:10px;
    background: -moz-linear-gradient(top,  rgba(68,187,187,1) 0%, rgba(34,0,2,1) 75%);
    ackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(68,187,187,1)), color-stop(75%,rgba(34,0,2,1)));
    ackground: -webkit-linear-gradient(top,  rgba(68,187,187,1) 0%,rgba(34,0,2,1) 75%);
    background: -o-linear-gradient(top,  rgba(68,187,187,1) 0%,rgba(34,0,2,1) 75%);
    background: -ms-linear-gradient(top,  rgba(68,187,187,1) 0%,rgba(34,0,2,1) 75%);
    background: linear-gradient(to bottom,  rgba(68,187,187,1) 0%,rgba(34,0,2,1) 75%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=#44bbbb, endColorstr=#220002,GradientType=0 ); ">
    <center>
    <img src="cid:logo" alt="my photo" height=50px;border=0 />
    </center> </div>
    <div style="width:550px; margin-left:10%; padding:10px;background: #E6E6E6; ">
    <h2>    Bonjour; </h2> </center>
    <h4>
            Pour finir votre inscription, veuillez suivre le lien suivant
            <small>This email was sent at: **[<?php echo date("dd/M/YY HH:i:s");]**</small>
            <br /> <br /> <br /> <center>
    
    </h4>
    </div> </div>
    ';
    
           

    Pourtant et si j'ai bien compris, on peut utiliser 

    //convert HTML into a basic plain-text alternative body
    $mail->msgHTML(file_get_contents('rep2msg.php'), dirname(__FILE__));
    



    Merci pour vos aides

    • Partager sur Facebook
    • Partager sur Twitter

    PhpMailer: Message en Html

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown