Skip to content

Bin4xin/Mail-Action

Repository files navigation

TODO LIST

  • Action Mail With sweet-telescope-based-InCloud
    • Golang
    • Action Demo running in localhost, Just For a DEMO ;)
  • 加入关注点细节,如突出关注点、上次运行是的关注点内容对比;
  • 现HTML模版过于简单,计划添加复杂HTML模版。

零、哨兵EMAIL申请

0x01、简单用法:

  • 确保您已经加入本仓库Manage access - collaborators中;
  • 克隆代码到本地:git clone https://github.com/Bin4xin/Mail-Action.git
  • 本地修改.github/workflows/action.yml目录文件:
run: bash ./SCS_domail_mail_manage.sh ${{secrets.SENTRY_MAIL_PDDTOKEN}} contact-me 
#Line15: <修改这里.>最后一个字段为您的用户名 如修改填入contact-me ,那么您的邮箱为contact-me@sentrylab.cn

to: your_email@domain.com
#Line31: <修改这里.>接收您账号密码的邮箱 用于接收您新建邮箱的账号密码

如果在git使用中遇到问题参阅下列文章/代码

接着推送到github仓库就行,到此处下一步就是手动触发action

0x02、Git Fork用法(不推荐)

第一步:FORK本仓库:)

第二步:克隆代码到本地

git clone https://github.com/${your-name}/Mail-Action.git

第三步:切换到SCS-1.0-dev远程分支(远程库默认名字为origin)

git checkout SCS-1.0-dev

第四步:在该分支提交你的更改,然后提交

$ git add .
$ (linux & mac) git commit -m "[`date +%Y/%m/%d/%T`]<调试::ACTION>: commit by `git config --global --list|grep user.name|awk -F"=" '{print $2}'`"
> (推荐windows Git Bash) git commit -m "[`date +%Y/%m/%d/%T`]<测试::GitBash on MSWin>: commit by `git config --global --list|grep user.name|awk -F"=" '{print $2}'`"
#[SCS-1.0-dev bfc8df8] [2021/12/07/13:59:59]<测试::GitBash on MSWin>: commit by sentryCyberSec

$ git push origin SCS-1.0-dev

第五步:推送本地分支到自己的fork库

git remote add upstream git@github.com:sentryCyberSec/Mail-Action.git

git fetch origin
git merge SCS-1.0-dev
git push upstream SCS-1.0-dev

第六步:点击上面的pull request就可以推送请求了,确认无误后填写pull request的标题和具体内容,点击create pull request绿色按钮推送合并即可。

action

效果

加入客户端

  • 点击邮箱提示登录确认按钮激活
  • 进入WEB主页配置
  • 选择From the pop.yandex.com server via POP3子项按钮按需选择、Don't automatically delete emails marked as deleted in IMAP

保存。

  • 客户端连接
    • 随机客户端密码配置:
    • 1、点击进入账户管理
    • 2、Passwords and authorization -> App passwords 新建即可
  • 如果配置了客户端随机密码那么就使用随机密码,否则是WEB的登录密码。
POP3:pop.yandex.com SSL端口:995
SMTP:smtp.yandex.com SSL端口:465
IMAP:imap.yandex.com SSL端口:993

Email Action

GithubAction发送邮件样例,仅仅只是一个测试demo

example of action to send an email. Just a test:)

  • 基于Github Action的Bash自动邮件脚本
    • 邮件网页模版设计;
    • 邮件HTML格式html_body: file://result.html;
    • 抄送cc.

效果

贡献者

仓库贡献者 Pull & Request 备注
@Yang2635 #2
  • 修改:将htmlTemp_Demo.sh修改为htmlTemp_Demo.html.template模板
  • 优化:引用模板渲染result.html文件,而非命令的拼凑
  • 优化:取消curl执行的进度显示

参考文献/代码

致谢:)

感谢以上所有链接文章的作者以及开源代码:)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages