You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
2 years ago
|
@echo off
|
||
|
rem -----------------------------
|
||
|
rem Shell-Kommando "sendmail.x"
|
||
|
rem -----------------------------
|
||
|
|
||
|
rem -------------------------------------------------------------------
|
||
|
rem sendmail - Eine Java-Klasse zum Verschicken von Dateien per Email
|
||
|
rem sendmail.bat (für Windows)
|
||
|
rem sendmail.x (für Linux)
|
||
|
|
||
|
rem als Parameter gibt man an
|
||
|
rem sendmail.bat --to test@test.de --from system@super-ics.de --host smtp.strato.de --ssl (optional wenn SSL verwendet werden soll) --username system --password geheim --subject "COB Prüfprotokoll" --msg "Hier erhalten Sie Ihre Protokolle" (optional) --msgfile c:\nachricht.txt (optional) --attach c:\protokoll.xls (optional)
|
||
|
rem -------------------------------------------------------------------
|
||
|
if not "%1" == "" goto gotParams
|
||
|
echo Aufruf: sendmail.bat --to test@test.de --from system@super-ics.de --host smtp.strato.de --ssl (optional wenn SSL verwendet werden soll) --username system --password geheim --subject "COB Prüfprotokoll" --msg "Hier erhalten Sie Ihre Protokolle" (optional) --msgfile c:\nachricht.txt (optional) --attach c:\protokoll.xls (optional)
|
||
|
echo
|
||
|
echo
|
||
|
goto finish
|
||
|
fi
|
||
|
:gotParams
|
||
|
|
||
|
rem Get remaining unshifted command line arguments and save them in the
|
||
|
set CMD_LINE_ARGS=
|
||
|
:setArgs
|
||
|
if ""%1""=="""" goto doneSetArgs
|
||
|
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
|
||
|
shift
|
||
|
goto setArgs
|
||
|
:doneSetArgs
|
||
|
java -cp %JDBC_CLASSPATH% de.superx.bin.SendMail %CMD_LINE_ARGS%
|
||
|
|
||
|
:finish
|
||
|
|