Search This Blog

Wednesday, June 13, 2012

[CentOS5] SVN Commit後透過Gmail發送email通知(SVN Post-Commit to send email notify via Gmail)

在CentOS 5中,使用SVN Commit Code後要自動發送通知,進行下列2個步驟即可,如果不是使用Gmail的smtp,則跳過第1步驟

     svn_email_commit.sh中

38# Send email
39cat $TMPFILE | mail -a "From: $SENDFROM" -s "$SUBJECT" "$SENDTO"

    在我使用時要修改一下才可正常發送

38# Send email
39cat $TMPFILE | mail -s "$SUBJECT" "$SENDTO"



No comments: