3 Star 12 Fork 3

abaddon / gitosc-hook-mail

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

#GITOSC-HOOK-MAIL

在项目中为了给其他的相关人员推送开发进度,如果自己在提交完成后手动去告知,一般来说比较麻烦,借助Git Hook提交回调功能,Gitosc-hook-mail实现了在提交完成后自动发邮件给预设的观察者,这样方便相关人员及时同步信息。 *关于如何在Git@OSC上设置提交回调服务,请查阅HOOK钩子 *

如何使用

git clone git@git.oschina.net:ieinstein/gitosc-hook-mail.git gitosc-hook-mail.git
cd gitosc-hook-mail.git
mv config.sample.php config.php

config.php 配置

return array(
'host'=>'smtp邮件服务器的地址,例如 stmp.163.com',
'name'=>'发件人姓名,例如 Meander River.',
'account'=>'发件人账户,例如 example@email.com',
'accpwd'=>'发件人账户密码',
'authpassword'=>'Git@OSC上GIT HOOK设置的密码(为防止恶意请求)',
'to'=>array(
    array(
        '收件人邮箱1',
        '收件人姓名1'
    ),
	array(
        '收件人邮箱2',
        '收件人姓名2'
    ),
	'收件人邮箱3'
),
'cc'=>array(
    array(
        '抄送人',
        '抄送人姓名'
    	)
	)
);

部署

将配置好的目录gitosc-hook-mail.git上传到网站服务器(LAMP或者LNMP)的根目录下即可,得到访问地址:http://exampleurl.com/gitosc-hook-mail.git/index.php
再到Git@OSC上你的项目中,管理->PUSH钩子->开启钩子,填写上述钩子地址与密码(注意密码需与config.php文件设置相同)

有任何疑问请与作者联系

E-mail:ieinstein@163.com QQ:1485619676(请注明Git@OSC)

The MIT License (MIT) Copyright (c) 2015 abaddon Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Git@OSC hook 自动发送邮件到指定的邮箱,可以用于项目跟进报告 expand collapse
PHP
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/ieinstein/gitosc-hook-mail.git
git@gitee.com:ieinstein/gitosc-hook-mail.git
ieinstein
gitosc-hook-mail
gitosc-hook-mail
master

Search

53164aa7 5694891 3bd8fe86 5694891