Bonjour,
Voilà 3 jours que je me casse la tête avec ça !!! je dois envoyer un lien de payement saferpay par e-mail, mais dans le lien, dans la partie signature, il y a "! " qui apparait au milieux et je ne sais pas D'OU il vient et ni comment l'enlever. Si j'affiche l'url en dehors du lien, il n'y a pas de problème il n'y a rien qui apparait. mais si je l'affiche dans la balise HREF, il y a ces signes qui apparaisse.
Pour exemple et pour mieux comprendre, voici ce que ressort mon e-mail en rouge ci-dessous les caractères qui apparaissent par miracle !!! :
Vrai URL :
https://www.saferpay.com/vt/Pay.asp?DATA=%3cIDP+MSGTYPE%3d%22PayInit%22+KEYID%3d%220-99867-7d5a273c0f5043e28811e764d6433086%22+TOKEN%3d%22ff1e881d841a41198eb363a7312af79e%22+ALLOWCOLLECT%3d%22no%22+DELIVERY%3d%22no%22+EXPIRATION%3d%2220090606+14%3a52%3a30%22+ACCOUNTID%3d%2299867-94913159%22+AMOUNT%3d%223900%22+CURRENCY%3d%22CHF%22+DESCRIPTION%3d%22Commande+No.+23%22+SUCCESSLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fsuccess.php%22+BACKLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fcheckout.php%22+FAILLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2ffailed.php%22+LANGID%3d%22fr%22+ORDERID%3d%222001244206324%22+%2f%3e&SIGNATURE=6774f6de2674e5d54f8208451776ed43b7fa467105aee0e7c36c33b8631796434235b9bd78cc19d890fe1cd1ffc1812916ca099951d8e52dc28d50990314a197
<br />
<br /><br />
Le paiement de la commande s'effectue via Saferpay: veuillez cliquer
<a href="https://www.saferpay.com/vt/Pay.asp?DATA=%3cIDP+MSGTYPE%3d%22PayInit%22+KEYID%3d%220-99867-7d5a273c0f5043e28811e764d6433086%22+TOKEN%3d%22ff1e881d841a41198eb363a7312af79e%22+ALLOWCOLLECT%3d%22no%22+DELIVERY%3d%22no%22+EXPIRATION%3d%2220090606+14%3a52%3a30%22+ACCOUNTID%3d%2299867-94913159%22+AMOUNT%3d%223900%22+CURRENCY%3d%22CHF%22+DESCRIPTION%3d%22Commande+No.+23%22+SUCCESSLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fsuccess.php%22+BACKLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fcheckout.php%22+FAILLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2ffailed.php%22+LANGID%3d%22fr%22+ORDERID%3d%222001244206324%22+%2f%3e&SIGNATURE=6774f6de2674e5d54f8208451776ed43b7fa467105aee0e7c36c33b8631796434235b9bd78! cc19d890fe1cd1ffc1812916ca099951d8e52dc28d50990314a197">
https:!
//www.saferpay.com/vt/Pay.asp?DATA=%3cIDP+MSGTYPE%3d%22PayInit%22+KEYID%3d%220-99867-7d5a273c0f5043e28811e764d6433086%22+TOKEN%3d%22ff1e881d841a41198eb363a7312af79e%22+ALLOWCOLLECT%3d%22no%22+DELIVERY%3d%22no%22+EXPIRATION%3d%2220090606+14%3a52%3a30%22+ACCOUNTID%3d%2299867-94913159%22+AMOUNT%3d%223900%22+CURRENCY%3d%22CHF%22+DESCRIPTION%3d%22Commande+No.+23%22+SUCCESSLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fsuccess.php%22+BACKLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2fcheckout.php%22+FAILLINK%3d%22http%3a%2f%2fwww.labor-et-fides.com%2fwp-content%2fplugins%2fwp-shopping-cart%2fmerchants%2fredir%2ffailed.php%22+LANGID%3d%22fr%22+ORDERID%3d%222001244206324%22+%2f%3e&SIGNATURE=6774f6de2674e5d54f8208451776ed43b7fa467105aee0e7c36c33b8631796434235b9bd78cc19d890fe1cd1ffc1812916ca099951d8e52dc28d50990314a197
</a>
Sinon le code que j'utilise pour le mail est le suivant :
$from = "From: ".$mailTo." \n";
$from .= "MIME-version: 1.0\n";
$from .= "Content-type: text/html; charset= UTF-8\n";
$msg = "Vrai URL : <br />".$url."<br /><br /><br />";
$msg .= 'Le paiement de la commande s\'effectue via Saferpay: veuillez cliquer <a href="'.$url.'">'.$url.'</a> ';
mail($email, $sujet, $msg, $from);
S IL VOUS PLAIT AIDER MOI !!! C'est très urgent et je suis au bord de la déprime....