« Courriel » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « Category:InformatiqueCategory:Administration Pour envoyer un courriel en ligne de commande on peut ajouter dans l'en-tête du fichier les paramètres suivants : To: destinataire@domaine.tld From: expediteur@domaine.tld Subject: ça c'est facile à comprendre c'est le sujet du courriel MIME-Version: 1.0 Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html>... ») |
Aucun résumé des modifications |
||
Ligne 7 : | Ligne 7 : | ||
MIME-Version: 1.0 | MIME-Version: 1.0 | ||
Content-Type: text/html | Content-Type: text/html | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | ||
<html> | <html> | ||
<head> | <head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
</head> | </head> |
Version actuelle datée du 7 avril 2023 à 11:16
Pour envoyer un courriel en ligne de commande on peut ajouter dans l'en-tête du fichier les paramètres suivants :
To: destinataire@domaine.tld From: expediteur@domaine.tld Subject: ça c'est facile à comprendre c'est le sujet du courriel MIME-Version: 1.0 Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> ...
De cette manière on peut écrire un courriel en utilisant du HTML
- Source :
https://stackoverflow.com/questions/3317174/sending-html-mail-using-a-shell-script