Email incomplet club internet

cseagle Messages postés 99 Date d'inscription vendredi 18 avril 2003 Statut Membre Dernière intervention 5 août 2009 - 29 janv. 2007 à 10:13
cseagle Messages postés 99 Date d'inscription vendredi 18 avril 2003 Statut Membre Dernière intervention 5 août 2009 - 31 janv. 2007 à 10:08
Bonjour,

J'ai un script classique d'envoi de newsletter html qui fonctionne très bien sauf sur club internet ou le contenu de mon mail est coupé en plein milieu.

Quelqu'un a t-il déjà eu ce problème ?
Une solution ?

Voici ma fonction :

function envoi_news($exp,$dest,$nom,$bcc,$message,$sujet) {
    $mail_mime = "Organization: Nom\n";
    $mail_mime = "From: ".$nom." <".$exp.">\n";
    $mail_mime .= "Reply-To: ".$exp."\n";
    $mail_mime .= "Return-Path: <".$exp.">\n"; // En cas d' erreurs
    $mail_mime .= "X-Sender: <".$exp.">\n";
    $mail_mime .= "BCc: ".$bcc."\n";
    $mail_mime .= "MIME-Version: 1.0\n";
    $mail_mime .= "Content-Type: text/html; charset=ISO-8859-1\n ";
    $mail_mime .= "Content-Transfer-Encoding: 8bit \n";
    if(!mail($dest,$sujet,$message,$mail_mime)) {
        return false;
    } else {
        return true;
    }             
}

et mon code

$mailing = new template ('mailing/mail.php','debug');
    $mailing->bloc('CONTENU', array('CONTENU'=>html_entity_decode($_POST['contenu'],ENT_QUOTES)));
    $mailing->variable('DATE','TEST - Newsletter du '.date('d-m-Y'));
    $mailing->bloc('BLOC_VIDE', array('VIDE'=>''));
    $envoi= $mailing->traitement(); // on traite l'affichage
    // Envoi de la news
    $sujet='TEST - Newsletter du '.date('d-m-Y');
    envoi_news('email@monsite.com','email@monsite.com,'Nom','mesmails@monsite.com',$envoi,$sujet);

2 réponses

cseagle Messages postés 99 Date d'inscription vendredi 18 avril 2003 Statut Membre Dernière intervention 5 août 2009
29 janv. 2007 à 10:16
Un exemple de news

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Atlantic Cin&eacute; - L'actualit&eacute; de la semaine</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css">

<!--

body,td,th {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 11px;

color: #000000;

}

body {

background-color: #000000;

margin-left: 0px;

margin-top: 0px;

margin-right: 0px;

margin-bottom: 0px;

}

-->

</style>

<link href="http://www.atlantic-cine.fr/style.css" rel="stylesheet" type="text/css" />

</head>

"http://www.atlantic-cine.fr/news.php" target="_blank" class="lienblanc">

Se d&eacute;sinscrire</td>

</tr>

</table>

</html>
0
cseagle Messages postés 99 Date d'inscription vendredi 18 avril 2003 Statut Membre Dernière intervention 5 août 2009
31 janv. 2007 à 10:08
C'est arrivé à persone ?
Persone pour m'aider ?

Snif ^'
0
Rejoignez-nous