Envoi d'email en php : satanée Partie 1.2 !
                                    
                        juanou                    
                                    -
                                     
Poireau_renegat -
        Poireau_renegat -
        Salut tout le monde.
Voilà un bout de temps que je planche sur ma fonction d'envoi d'email.
Ca marche pas trop mal mais il me reste un souci :
Quand j'attache une pièce jointe à mon message, il arrive toujours avec une autre pièce jointe en bonus, que mon client mail (Thunderbird) appelle Partie 1.2
Je serais pas surpris qu'il y ait un problème de boudary là-dessous, mais je ne sais pas le quel.
Please, help.
Voilà à quoi ressemble le genre de message que je constitue par php (cherchez l'erreur) :
Subject: confirmation de votre commande sur www.erton.com
To: untel@truc.com
From: untel@truc.com
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_7471474af99a719b35463fce6e1e93da"
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
blabla
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
<html><body>blabla</body></html>
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; name="fichier1.html"
Content-Transfer-Encoding: base64
Content-Disposition:attachement; filename="fichier1.html"
CiAgPGh0bWw+CiAgPGhlYWRzPgogIDx0 (etc.) b25kaXRpb25zIGfpbulyYWxlcyBkZSB2ZW50
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; name="fichier2.html"
Content-Transfer-Encoding: base64
Content-Disposition:attachement; filename="fichier2.html"
CiAgPGh0bWw+CiAgPGhlYWRzPgogIDx0 (etc.) b25kaXRpb25zIGfpbulyYWxlcyBkZSB2ZW50
------=_NextPart_7471474af99a719b35463fce6e1e93da--
                
            
                
    
    
    
        Voilà un bout de temps que je planche sur ma fonction d'envoi d'email.
Ca marche pas trop mal mais il me reste un souci :
Quand j'attache une pièce jointe à mon message, il arrive toujours avec une autre pièce jointe en bonus, que mon client mail (Thunderbird) appelle Partie 1.2
Je serais pas surpris qu'il y ait un problème de boudary là-dessous, mais je ne sais pas le quel.
Please, help.
Voilà à quoi ressemble le genre de message que je constitue par php (cherchez l'erreur) :
Subject: confirmation de votre commande sur www.erton.com
To: untel@truc.com
From: untel@truc.com
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_7471474af99a719b35463fce6e1e93da"
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
blabla
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
<html><body>blabla</body></html>
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; name="fichier1.html"
Content-Transfer-Encoding: base64
Content-Disposition:attachement; filename="fichier1.html"
CiAgPGh0bWw+CiAgPGhlYWRzPgogIDx0 (etc.) b25kaXRpb25zIGfpbulyYWxlcyBkZSB2ZW50
------=_NextPart_7471474af99a719b35463fce6e1e93da
Content-Type: text/html; name="fichier2.html"
Content-Transfer-Encoding: base64
Content-Disposition:attachement; filename="fichier2.html"
CiAgPGh0bWw+CiAgPGhlYWRzPgogIDx0 (etc.) b25kaXRpb25zIGfpbulyYWxlcyBkZSB2ZW50
------=_NextPart_7471474af99a719b35463fce6e1e93da--
        A voir également:         
- Envoi d'email en php : satanée Partie 1.2 !
- Comment creer un compte email - Guide
- Easy php - Télécharger - Divers Web & Internet
- Votre envoi est en préparation pour sa distribution. ✓ - Forum Consommation & Internet
- Votre envoi est en préparation pour sa distribution ✓ - Forum Consommation & Internet
- Votre envoi est en cours d'acheminement. - Forum Consommation & Internet
