I was wondering if its possible what im trying to do, I want to send an email automatically every day to all the users and new users when created automatically. Im not sure if its done though zimbra or though postfix?
any ideas
Thank you
This is what i have so far, currently i have to add the email manually in the addresses.txt and could not figure out how to add the subject
Code: Select all
#!/bin/sh
SENDER="sistemas@mydomain"
ADDRESSFILE="/root/addresses.txt"
SENDMAIL="/usr/sbin/sendmail"
for RECIPIENT in $(cat ${ADDRESSFILE}); do
cat <<EOF | ${SENDMAIL} -i -f "${SENDER}" "${RECIPIENT}"
Hello User,
this is a reminder
EOF
done