Bonjour,

Pour envoyer des mails HTML, j'utilise le script suivant qui fonctionne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
        $subject = $societe->getNom() . ' - ' . $report->getTypeRapport()->getNom() . ' N° ' . $report->getId();
        $body = $controlleur->renderView('AppliReportBundle:Send:rapportLien.html.twig', array('rapport' => $report, 'societe' => $societe));
 
 
        $message = \Swift_Message::newInstance()
                ->setSubject($subject)
                ->setFrom($from)
                ->setTo($to)
                ->setBody($body);
 
 
        $type = $message->getHeaders()->get('Content-Type');
        $type->setValue('text/html');
        $type->setParameter('charset', 'utf-8');
 
 
        $controlleur->get('mailer')->send($message);
Maintenant je dois insérer dans le texte HTML des images de type BASE64 (via CKEditor).

Quand le mail est reçu sur le PC : l'image BASE64 est bien affichée.

Quand le mail est lu à partir de la tablette avec l'application ANDROID GMAIL l'image BASE64 n'est pas affichée.

Comment rendre l'envoi compatible avec tous les clients de messagerie ?

Merci.

A+