Skip to content

Dateiversand per E-Mail

Der Dateiversand per E-Mail erlaubt das Versenden von Dateien (INI-Option files) und wird über eine INI-Datei mit der Sektion MAILER gesteuert.

powershell
python prozessing.pyz mailer_xxxx.ini

INI-Datei: mailer

ini
[MAILER]
files =
from =
to =
cc =
bcc =
reply_to =
subject =
smtp_host =
smtp_port =
smtp_user =
smtp_pass =
message =
    multi-line message
    multi-line message
; oder message aus HTML-Datei foo/message.html
message = @foo/message.html

INI-Beispiel

ini
[MAILER]
files = d:/Daten/export/OGD_*.csv
from = wiski@example.com
to = foo@example.com
cc = bar@example.com
reply_to = info@example.com
subject = Aktueller OGD-Export
smtp_host = mail.example.com
smtp_port = 25
message = Hallo,
    anbei die neuesten OGD-Messdaten…
    Grüße!