smtp,
email
voir projet
PofBox
programme d'émission d'email en ligne de commande pour Windows
voir aussi
mpack sous
unix? ou
linux
@20071103: test en cours, pas de garantie pour l'instant
GAFFE: nécessite de connaitre un serveur
smtp accessible
- celui du FAI
- un générique sans contrôle (a priori tous disparus!)
- celui du destinataire à confirmer
- un tiers (en général nécessite une connexion authentifiée)
GAFFE: le message de bonne fin ne peut être redirigé ni par 1 ni 2> (à moins que autre bug)
SANS GARANTIE: à télécharger à:
http://www.muquit.com/muquit/software/mailsend/mailsend.html#download
http://www.muquit.com/muquit/software/mailsend/mailsend.html
moved to:
https://github.com/muquit/mailsend/
téléchargement:
https://github.com/muquit/mailsend/releases/
(le programme ne demande pas d'installation)
décompresser le .zip
utiliser le fichier mailsend.exe
(selon votre path et l'emplacement du fichier, il peut être nécessaire de l'appeler par le chemin complet, par exemple:
"C:\Users\zorglub\Downloads\mailsend.exe\mailsend.exe" -help
exemple envoi d'une invite à assistance:
mailsend -M pwd:bbbbbb -d erdammj@free.fr -f erdammj@free.fr -smtp smtp.free.fr -p 25 -t antiguied@free.fr -sub demande_d_aide_mlj -a demaide.msrcincident
cette ligne peut bien sûr être enregistrée dans un .bat, associé à un raccourci et à une combinaison de touches
(voir
msra pour la création de l'invitation elle même)
pour obtenir la liste des options:
mailsend -help
C:\Users\zorglub>C:\Users\zorglub\Downloads\mailsend.exe\mailsend.exe -help
Version: @(#) mailsend v1.14
Copyright: GNU GPL. It is illegal to use this software for Spamming
usage: mailsend [options]
Where the options are:
-d domain* - domain name for SMTP Helo
-smtp hostname/IP* - of the SMTP server
-p SMTP port - SMTP port
-t to,to..* - email address/es of the reciepient/s
-cc cc,cc.. - Carbon copy address/es
+cc - don't ask for Carbon Copy
-bc bcc,bcc.. - Blind carbon copy address/es
+bc - don't ask for Blind carbon copy
+D - don't add Date header
-f address* - email address of the sender
-sub subject - subject
-l file - a file containing the email addresses
-a file,mime_type - attach this file
-cs character set - for text/plain attachments (default is us-ascii)
-m file,mime_type,[i/a] (i=inline,a=attachment)
- attach the file (text,html etc) as body (inline)
-M "one line msg" - attach this one line text message
-v - verbose mode
-V - show version info
-w - wait for a CR after sending the mail
-rt email_address - add Reply-To header
-rrr email_address - request read receipts to this address
-help - shows this help
The options with * must the specified
Example (Note: type without newline):
mailsend -f muquit@example.com -d example.com -smtp 10.100.30.1 -t muquit@muquit.com -sub test -a "file.txt,text/plain" -a "/usr/file.gif,image/gif" -a "file.jpeg,image/jpg"
mailsend -f muquit@example.com -d example.com -smtp 192.168.0.2 -t muquit@muquit.com -sub test +cc +bc -a "c:\file.gif,image/gif" -M "Sending a GIF file"
mailsend -f muquit@example.com -d example.com -smtp 192.168.0.2 -t muquit@muquit.com -sub test +cc +bc -cs "ISO-8859-1" -a "file2.txt,text/plain"
Change content disposition to inline:
mailsend -f muquit@example.com -d example.com -smtp 10.100.30.1 -t muquit@muquit.com -sub test -a "nf.jpg,image/jpeg,i" -M "content disposition is inline"
exemples:
au clavier:
C:\Users\zorglub>"C:\Users\zorglub\Downloads\mailsend.exe\mailsend.exe" -d free.fr -smtp smtp.free.fr -t zorglub@free.fr -f friboulet@free.fr -sub demo_mail_ligne +cc +bcc
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Type . in a new line and press Enter to end the message, CTRL+C to abort
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
texte du message
la suite ...
.
Mail sent successfully
depuis un fichier:
ici.txt (terminé par une ligne .)
C:\Users\zorglub>"C:\Users\zorglub\Downloads\mailsend.exe\mailsend.exe" -d free.fr -smtp smtp.free.fr -t z@free.fr -f f@free.fr -sub demo_mail_lign +cc +bcc <ici.txt
Mail sent successfully
C:\Users\zorglub>
observations
- l'option -f est obligatoire (pas de +f), sinon demande au clavier
- testé avec le smtp de free, le domaine de l'adresse indiquée par -f doit exister (utopie.fr: oui, utopie.po: non)
- par contre aucun contrôle sur l'adresse communiqué au HELO
- sauf erreur, l'option -t génère à la fois la ligne "To: " et le destinataire réel du message