You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
otthorn b62ce96a19 🚑 append in the right order 4 years ago
LICENSE Initial commit 4 years ago
README.md 🔒 Used standard example domain name 4 years ago
headers.txt 🎉 basic script to send html mail with example 4 years ago
mail.txt 🎉 basic script to send html mail with example 4 years ago
send_html_mail.sh 🚑 append in the right order 4 years ago
tmp_mail.txt 🎉 basic script to send html mail with example 4 years ago

README.md

send_html_mail

Installation

Il faut installer ce script sur un serveur possédant un sendmail utilisable. Beaucoup de serveurs unix en possède un. Exim4 remplace le sendmail de base sous Debian. On préfèrera Postfix pour des plus grosses instances.

À Aurore vous pouvez copier ce programme dans votre home perso sur re2o.adm.auro.re qui possède un serveur postfix.

Il faut rendre le programme exectuable

chmod +x send_html_mail.sh

Si vous l'installer sur un autre serveur faites attention au chemin de sendmail qui hardcodé ici à la valeur /usr/sbin/sendmail que vous pourrez avoir à changer. Pour savoir où se trouve sendmail dans votre système on peut faire :

whereis sendmail

Utilisation

Petit script pour envoyer des mails avec sendmail On donne juste une addresse à laquelle envoyé en entrer. Le programme utilise les fichiers headers.txt et mail.txt comme présent dans le dossier courant comme configuration.

Usage :

./send_html_mail.sh someone@example.org

Envoie le contenu mail.txt avec les entêtes headers.txt à someone@example.org