Mutt et fichier html

Fermé
Utilisateur anonyme - 19 oct. 2010 à 15:46
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 - 19 oct. 2010 à 18:02
Bonjour,

je voudrais avec l'aide de mutt, joindre un fichier html dans le corps de message du mail

j'ai bien sûr essayé auparavant des petites choses comme:

mutt -i fichier_html toto@tata.fr -s "fichier html"

j'obtiens le fichier html en pièce jointe et non dans le corps du mail comme je le voudrais,

si vous avez des solutions, je suis preneur

je vous souhaite à toutes et à tous une bonne fin de journée



A voir également:

2 réponses

jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 897
19 oct. 2010 à 16:02
Salut,

Et comme ça :

mutt -s "fichier html" toto@tata.fr < fichier_html 
0
Utilisateur anonyme
19 oct. 2010 à 16:14
Re,

j'ai déjà essayé cette méthode, mais le message en apparait en "code source" dans le corps du message et non en html,
j'ai regardé également au niveau de outlook dans les options par défaut, le format du courrier est bien en html,
là je sèche ....

0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 897
19 oct. 2010 à 16:31
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 897
19 oct. 2010 à 17:54
Si tu as w3m d'installer tu peux essayer un truc comme ça :

mutt -s "fichier html" toto@tata.fr < <(w3m -dump -T text/html fichier_html)
0
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 897
19 oct. 2010 à 18:02
En cherchant bien : http://www.fefe.de/muttfaq/faq.html#common-problems

I keep getting HTML attachments.
Yes. And with recent Mutt versions, there is help. Just add one of these to your ~/.mailcap:

text/html; lynx -force_html %s; needsterminal;
text/html; elinks -default-mime-type text/html %s; needsterminal;

Alternatively you can use autoview, which makes mutt display the attachments inline. Then you have to add set implicit_autoview to your muttrc and one of these to your ~/.mailcap:

text/html; lynx -dump -force_html %s; needsterminal; copiousoutput;
text/html; elinks -dump -dump-charset iso-8859-15 -default-mime-type text/html %s; needsterminal; copiousoutput;

I recommend elinks over lynx because of its superior HTML rendering.
0