mirror of
https://github.com/deajan/osync
synced 2024-11-03 15:40:14 +00:00
Reverted openssl silent becauce sendmail: NOOP failed
This commit is contained in:
parent
d2be7e43a8
commit
852ff0adf5
@ -449,9 +449,9 @@ function SendEmail {
|
||||
fi
|
||||
if type sendmail > /dev/null 2>&1; then
|
||||
if [ "$encryption" == "tls" ]; then
|
||||
echo -e "Subject:$subject\r\n$message" | $(type -p sendmail) -f "$senderMail" -H "exec openssl s_client -quiet -tls1_2 -starttls smtp -connect $smtpServer:$smtpPort > /dev/null" -au"$smtpUser" -ap"$smtpPassword" "$destinationMails"
|
||||
echo -e "Subject:$subject\r\n$message" | $(type -p sendmail) -f "$senderMail" -H "exec openssl s_client -quiet -tls1_2 -starttls smtp -connect $smtpServer:$smtpPort" -au"$smtpUser" -ap"$smtpPassword" "$destinationMails"
|
||||
elif [ "$encryption" == "ssl" ]; then
|
||||
echo -e "Subject:$subject\r\n$message" | $(type -p sendmail) -f "$senderMail" -H "exec openssl s_client -quiet -connect $smtpServer:$smtpPort /dev/null" -au"$smtpUser" -ap"$smtpPassword" "$destinationMails"
|
||||
echo -e "Subject:$subject\r\n$message" | $(type -p sendmail) -f "$senderMail" -H "exec openssl s_client -quiet -connect $smtpServer:$smtpPort" -au"$smtpUser" -ap"$smtpPassword" "$destinationMails"
|
||||
else
|
||||
echo -e "Subject:$subject\r\n$message" | $(type -p sendmail) -f "$senderMail" -S "$smtpServer:$smtpPort" -au"$smtpUser" -ap"$smtpPassword" "$destinationMails"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user