From d712a8a289885ca242b0de173535ab6ded2a833c Mon Sep 17 00:00:00 2001 From: root Date: Sun, 17 Aug 2008 15:30:06 +0200 Subject: send confirmation email --- bin/addproject | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/bin/addproject b/bin/addproject index 660a245..f40e3ae 100755 --- a/bin/addproject +++ b/bin/addproject @@ -95,13 +95,29 @@ main() { eheading "requesting new mailinglist for the project" # register mailinglist (owner is user_email) for the new project - eexec wget --no-check-certificate --post-data "name=commit-${project_name}&email=${user_email}" \ + eexec wget -q -O /dev/null --no-check-certificate --post-data "name=commit-${project_name}&email=${user_email}" \ https://lists.spline.inf.fu-berlin.de/cgi-bin/neueliste.pl + eheading "sending confirmation email to applicant" + sendmail -t <<-EOF + From: dev@spline.de + Subject: your new project has been approved + To: ${user_email} + + Dear ${user_name}, + + your project (${project_name}) has been created and can be found at + https://dev.spline.de/trac/${project_name} + + Yours, + the dev.spline.de team + EOF + einfo "mail to ${user_email} has been sent" + echo einfo einfo "done! success! jipii! neeeat!" - einfo "you can find your project at $(color yellow)https://dev.spline.de/trac/${project_name}$(color)" + einfo "you can find the project at $(color yellow)https://dev.spline.de/trac/${project_name}$(color)" einfo echo } -- cgit v1.2.3