Re: msmtp Doku

Helmut Backhaus <[email protected]>
Newsgroups spline.fli4l.opt
Organization spline
Message-ID <[email protected]>
Hallo Frank,

Am 05.03.19 um 21:55 schrieb Frank Stroeter:
>> So geht es bei mir ...
>> echo "Bist Du da?" | msmtp -C /etc/msmtp/msmtp.conf [email protected]
> sooooo, das geht. Aber nicht mit weiteren Parametern -s z.B.
> 

Doch, das geht auch ...
Ich hab eben noch gespielt, da geht einiges.
Ist aber ne blöde syntax ...

Ich finde das hier Cool ...
Datei anlegen, z.B. testmail.txt mit folgendem inhalt:
(Ist nur ein Beispiel)

To: @gmail.com
From: @gmail.com
Subject: Email Test using MSMTP from File

Hi,
This is an email test from file.


Dann so aufrufen:
cat testmail.txt | msmtp -C /etc/msmtp/msmtp.conf [email protected]

Die Empfängeradresse am ende muss halt gültig sein, wenn Dein Mailserver
das zulässt kann man an der stelle auch die Absender ändern.
Ich kann mir das die Tage noch mal ansehen, da geht so einiges ...

Sonst schau mal nach "msmtp howto" in einer Suchmaschine deiner Wahl
Auch mit scripting geht da einiges ...

Melde Dich gern, wenn noch fragen sind!

Aber für heute ist erst mal Feierabend.


-- 
Gruß,
Helmut
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.