@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