#!/bin/bash

#-----------------------------
# Shell-Kommando "sendmail.x"
#-----------------------------

#-------------------------------------------------------------------
#sendmail - Eine Java-Klasse zum Verschicken von Dateien per Email
#sendmail.bat (für Windows)
#sendmail.x (für Linux)

#als Parameter gibt man an
#sendmail.x --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)
#-------------------------------------------------------------------
if [ "$1" = "" ]
   then 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 " "
	exit 0
fi
java -cp $JDBC_CLASSPATH de.superx.bin.SendMail $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13