J'aimerai suivre l'historique d'envoi de mails automatisé.
- Nom de domaine : salonchezvincent.fr
- Mon hébergement/serveur est-il chez OVHcloud? oui hébergement Web
Bonjour,
Je n'ai Rien sur l'historique alors que les mails sont envoyés et reçus.
J'ai bien décortiqué l'aide "Suivre et gérer les e-mails automatisés de son hébergement web", cela viendrait du script SMTP?
J'utilise PHPMailer qui elle-même utilise la fonction mail() de php et aussi un script SMTP.
Stéphanie.
alors que les mails sont envoyés et reçus.
Bonjour,
Pouvez-vous montrer les en-têtes SMTP d'un de ces mails qui est sorti via la fonction mail() ?
Merci
Bonjour Fritz2cat,
Voilà mon code
$from = 'contact@stephanieprunaud.fr';
$mail = new PHPMailer(true);
$mail->CharSet = "UTF-8";
try
{
$mail->setFrom($from);
$mail->addAddress('contact@stephanieprunaud.fr');
$mail->Subject = 'Suivi clients';
$mail->IsHTML(true);
$mail->MsgHTML('http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
table, th, td {
border: 1px solid black;
}
Formulaire validé
Nom Marraine
prénom Marraine
email Marraine
Nom Amie
prénom Amie
email Amie
'.$nomMarraine.'
'.$prenomMarraine.'
'.$mailMarraine.'
'.$nomFilleule.'
'.$prenomFilleule.'
'.$mailFilleule.'
Average age
33
');
$mail->IsSMTP();
$mail->Host = 'ssl0.ovh.net'; //Adresse IP ou DNS du serveur SMTP
$mail->Port = 465; //Port TCP du serveur SMTP
$mail->SMTPAuth = true; //Utiliser l'identification
if ($mail->SMTPAuth)
{
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
$mail->SMTPSecure = 'ssl';//Protocole de sécurisation des échanges avec le SMTP
$mail->Username = $from; //Adresse email à utiliser
$mail->Password = ''; //
}
if ($mail->send())
{
header("Location: mailFilleuleValidation.html");
}
Merci!
Voilà mon code
Pouvez-vous montrer les en-têtes SMTP
Bonjour,
Ce n'est pas ceci que je souhaitais voir.
Les en-têtes SMTP se trouvent sur l'e-mail que vous avez reçu.
Ce sont des informations non affichées à l'écran en temps normal, qu'il faut demander à afficher (la manière de procéder dépend de votre logiciel)
Bonjour,<br /><br />Voilà:<br /> Delivered-To: <br /> Received: by 2002:a17:906:3507:b0:a52:1721:7b82 with SMTP id r7csp1858962eja;<br /> Sun, 14 Apr 2024 21:28:14 -0700 (PDT)<br /> X-Google-Smtp-Source: AGHT+IGYq/FwTbUExOQDlHbhr4J+H6fDy63HV4IFNO1aGmQEnFh/hOeHe4dpq7WYmPPrRKKs6EJq<br /> X-Received: by 2002:a05:600c:3585:b0:417:d75f:fa7 with SMTP id p5-20020a05600c358500b00417d75f0fa7mr7050011wmq.41.1713155293953;<br /> Sun, 14 Apr 2024 21:28:13 -0700 (PDT)<br /> ARC-Seal: i=1; a=rsa-sha256; t=1713155293; cv=none;<br /> d=google.com; s=arc-20160816;<br /> b=bN4Kec/6i62VgLhZ2yqwK3k7wthMtLCJ8z0Dg5LRGiWDP05E4mgvOGMOdmNyPqjE2M<br /> DxcIwNpnEAj1JmoR/mTXKKR6AvAn+KUL3mthgbLy8/uLIADslx+pMpCE3+5jPTAIMPdt<br /> GHBYk2mIVT88qZcVBfZ8LA516PFB196yhesVV6vT2EEqHqhc37VSyNW78EgwCYJ5Xjcg<br /> uQqMgAOlPnJmk+PsvBY0U0qqvGE4OSkoxATgFBcTOf7W8QjAVaua6U15t1G/xC+B0PMZ<br /> mko/lQKsf8t9dSvEB8nkH9LAYYLFfYXB/AZHdIaKDmX7bMqD5dRCxGq3O0lDFH7h0etC<br /> 4qLQ==<br /> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;<br /> h=content-transfer-encoding:mime-version:message-id:subject:from:to<br /> :date;<br /> bh=W592QatdeMUZ5KO9n/WDowFwWFyrIs/2gy2NcsJmJ6E=;<br /> fh=ZDQeocienMC7YbrnWuuNW6LIRMjnNTuwLU7kmiknb34=;<br /> b=euQHA+Apx7wFouoyLpw03O5M1Ue3IaVhFMekk7TswHDzfsKUr4dr7nBhkxg1VTpRNH<br /> r3sI2UKezrwKgrDZkFLSIEwyCI/lnqiNa26E5p3NrNMPZDZXUhCm0sA2j2JlYIi0SgHi<br /> iMyoy5vRbe0TMaCBp1FALQrzMegaG6XsbsBFWyvIBBBXcZrkYwv0eWxik9n7d65QPve/<br /> OK8c5Gu79StA7FtxAvx3vhLWy8W0WcyCB3P8mX8RX3SMQZDIleTvs3PDff9VlDdacz0R<br /> MNP2rmudQTi6EcSOlRP+HQD4CbmCAM16/s7Y3WVL1TYu0mFOyt5EqhjceCLFhCRnAJdm<br /> SBcQ==;<br /> dara=google.com<br /> ARC-Authentication-Results: i=1; mx.google.com;<br /> spf=pass (<a target="_blank">google.com:</a> domain of designates 46.105.34.246 as permitted sender) smtp.mailfrom=<br /> Return-Path: <><br /> Received: from 14.mo544.mail-out.ovh.net (14.mo544.mail-out.ovh.net. [46.105.34.246])<br /> by mx.google.com with ESMTPS id g12-20020a056000118c00b00345efab2c13si4904750wrx.1006.2024.04.14.21.28.13<br /> for <><br /> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);<br /> Sun, 14 Apr 2024 21:28:13 -0700 (PDT)<br /> Received-SPF: pass (<a target="_blank">google.com:</a> domain of noreply@salonchezvincent.fr designates as permitted sender) client-ip=;<br /> Authentication-Results: mx.google.com;<br /> spf=pass (<a target="_blank">google.com:</a> domain of noreply@salonchezvincent.fr designates as permitted sender) smtp.mailfrom=noreply@salonchezvincent.fr<br /> Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.2.7]) by mo544.mail-out.ovh.net (Postfix) with ESMTP id 4VHvL54Nd9z1gQk for gmail.com>; Mon, 15 Apr 2024 04:28:13 +0000 (UTC)<br /> Received: from ghost-submission-6684bf9d7b-7nr56 (unknown [10.111.182.49]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 646871FDD1 for gmail.com>; Mon, 15 Apr 2024 04:28:13 +0000 (UTC)<br /> Received: from salonchezvincent.fr ([37.59.142.96]) by ghost-submission-6684bf9d7b-7nr56 with ESMTPSA id ehlYFt2sHGZJMgAAhM6qTQ (envelope-from salonchezvincent.fr>) for gmail.com>; Mon, 15 Apr 2024 04:28:13 +0000<br /> Authentication-Results: garm.ovh; auth=pass (<br /> X-OVh-ClientIp: <br /> Date: Mon, 15 Apr 2024 06:28:10 +0200<br /> To: Stephanie gmail.com><br /> From: noreply@salonchezvincent.fr<br /> Subject: Offre Parrainage Vincent Coiffure<br /> Message-ID: salonchezvincent.fr><br /> X-Mailer: PHPMailer 6.9.1 (https://github.com/PHPMailer/PHPMailer)<br /> MIME-Version: 1.0<br /> Content-Type: multipart/alternative; boundary="b1=_BEJPXVwKuSKmwUp9uxEBLIfBhIgPBYU7orD4SqyNQ"<br /> Content-Transfer-Encoding: 8bit<br /> X-Ovh-Tracer-Id: 12456112146838174382<br /> X-VR-SPAMSTATE: OK<br /> X-VR-SPAMSCORE: 0<br /> X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudejuddgfeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeffvffhuffkofggtgfgsegrkeerreehtdejnecuhfhrohhmpehnohhrvghplhihsehsrghlohhntghhvgiivhhinhgtvghnthdrfhhrnecuggftrfgrthhtvghrnhepuefhiefhgfeffefhjedujeejleejveefvdefieeufedvteejffetudeljeegledunecuffhomhgrihhnpehsrghlohhntghhvgiivhhinhgtvghnthdrfhhrnecukfhppeduvdejrddtrddtrddupdeluddrudefgedrvdegkedrudelvddpfeejrdehledrudegvddrleeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnohhrvghplhihsehsrghlohhntghhvgiivhhinhgtvghnthdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepphhruhhnrghuughsthgvphhhrghnihgvsehgmhgrihhlrdgtohhmpdfovfetjfhoshhtpehmohehgeegpdhmohguvgepshhmthhpohhuth<br /><br /> --b1=_BEJPXVwKuSKmwUp9uxEBLIfBhIgPBYU7orD4SqyNQ<br /> Content-Type: text/plain; charset=us-ascii<br /><br /> This is an HTML-only message. To view it, activate HTML in your email application.<br /><br /> --b1=_BEJPXVwKuSKmwUp9uxEBLIfBhIgPBYU7orD4SqyNQ<br /> Content-Type: text/html; charset=UTF-8<br /> Content-Transfer-Encoding: 8bit<br /><br /> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd<br /><br /> Cordialement
Authentication-Results: garm.ovh; auth=pass (GARM-96R0019784d351-f432-42a6-a97a-eeddc7de268b,
0147397DF0CD38A08A87D7FC9D7905BAD6CF4134) smtp.auth=noreplyXsalonchezvincentXfr
X-OVh-ClientIp: 91.134.248.192
Bonjour,
Merci pour ces détails.
Vous pouvez envisager d'éditer votre post pour supprimer les détails personnels qui s'y trouvent.
Ce mail n'a pas été envoyé par php mail() mais bien au moyen de SMTP avec le login noreplyXsalonchezvincentXfr et son mot de passe, et ceci depuis 91.134.248.192 (cluster029.hosting.ovh.net)
Il est donc normal que votre espace client n'ait pas comptabilisé ce mail car il n'est pas passé par Scripts e-mail.
Bonjour,
Merci beaucoup pour votre réponse. Je vais modifier mon scripts afin d'utiliser la fonction mail() sans SMTP.
Cdt.