Commands to support emailing the admin when new users are registered to this Gitea instance.
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.
GiteaMailNotifications/notifyregistration.sh

15 lines
463 B

#!/bin/sh
# sendmail command line optons:
# -i - do not treat lines starting with dot specially
# -t - read recipients lists from message headers: TO,CC,BCC
# -v - use verbose mode (describe what is happening)
/usr/sbin/sendmail -i -t << MESSAGE_END
From: Sig <sigonasr2@projectdivar.com>
To: sigonasr2@yahoo.com
Date: Fri, 5 Aug 2022 10:44:00 -0700
Subject: Gitea - New User Registration!
A new user has registered on your site. You can go approve them now.