A php tool for send email , can be used for curl or any other http tools
RUN ENV :
- apache + php or nginx + php
- linux server with sendmail service or postfix service (you can use yum install postfix to install the dependency if you are using an centos server like me )
Description:
This interface is used for send mail , all receivers can receive the mail。
Arguments:
| argu name | method | required | description |
|---|---|---|---|
| receiver | post/get | true | string(split by comma) |
| from | post/get | false | string(mail sender, mail_service@noreply.com is the default value) |
| subject | post/get | true | string |
| text | post | false | string(content of the mail) |
| content | post | false | file(or you can use the to upload the content) |
| attachment | post | false | file |
RUN ENV:
- apache + php or nginx + php
- linux server with sendmail service or postfix service (you can use yum install postfix to install the dependency if you are using an centos server like me )
- mysql (should set settings.php & init_db.sh correctly and then init mysql by using the init_db.sh script )
Description:
This interface is used for send mail , all receivers can receive the mail.
Arguments:
| argu name | method | required | description |
|---|---|---|---|
| receiver | post/get | true | string(can include mail group name;split by comma) |
| from | post/get | false | string(mail sender, mail_service@noreply.com is the default value) |
| subject | post/get | true | string |
| text | post | false | string(content of the mail) |
| content | post | false | file(or you can use the to upload the content) |
| attachment | post | false | file |
Description:
Web service of mail group.
Arguments none
Description:
Add or delete a mail group,group owner will be the first member of the group.If you are deleting a mail group ,remeber all the members of the group will also be deleted.
Arguments:
| argu name | method | required | description |
|---|---|---|---|
| type | post/get | true | string(add or delete) |
| group_name | post/get | true | string(this name cannot repeat in global) |
| group_owner | post/get | true | string(mail addr of owner, will be the first member of the mail group) |
Description:
Add or delete a mail group member.
Arguments:
| argu name | method | required | description |
|---|---|---|---|
| type | post/get | true | string(add or delete) |
| group_name | post/get | true | string |
| group_member | post/get | true | string(mail addr of group member) |
Description:
Get mail group list.
Arguments: none
Description:
Get mail group member list of a group.
Arguments:
| argu name | method | required | description |
|---|---|---|---|
| group_name | post/get | true | string |
bryanzhou 2017.01.01