Inline2Mail : Inline CSS / Javascript

Envie d’envoyer un email formaté avec du CSS et du Javascript ? Besoin d’une solution pour tout rassembler en un fichier ?

Voici Inline2Mail, un script Python utilisant BeautifulSoup :

Download Inline2Mail

L’aide :

This script intends to inline Javascript and CSS in the HTML code in order to
pack all the ressources in one file so it becomes more email friendly.  It can
be used from the command line (type inline2mail.py --help for usage) or
imported as a module.  For now it handles only local files.
Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -J, --strip-javascript
                        Remove all javascript tags from the file
  -i, --in-place        Save the output in the original source file

Exemple :

./inline2mail.py e-vidence.net -i

Attention, le script ne marche qu’avec les fichiers en local.

Les commentaires sont fermés Contacter l'auteur.

Ça se comprend tout seul