Skip to content

The tool for send mail without SMTP server (Using ConoHa API)

License

Notifications You must be signed in to change notification settings

kmamiya/serverless-email-send-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-email-send-tool

The tool for send mail without SMTP server (Using ConoHa API)

You need ConoHa ( https://www.conoha.jp/conoha/ ) account for this tool use.

Install

  1. git clone https://github.com/kmamiya/serverless-email-send-tool.git
  2. cd serverless-email-send-tool/bin
  3. rename or copy from config.json.template
  4. edit config.json
  5. ./notify_mail.py config.json 'Mail subject' <(echo 'Hello') (on bash)

How to use

I think the following use case;

  • (On OS initialize, I wait long long time for yum upgrade...) $ sudo yum -y upgrade ; ./notify_mail.py config.json 'Report from server' <(echo 'yum upgrade finished')
  • (On application complie) $ make ; ./notify__mail.py config.json 'Report from server' <(make check; echo $?)

[2016-12-03]Append;

I appended the function for getting diskimage list from ConoHa. I published the sample code for getting diskimage list on Gist kmamiya/list_diskimage_sample.py

Website (Japanese)

http://logicalrabbit.jp/serverless-email-send-tool

LICENSE

Copyright (c) 2016 Kentarou Mamiya. See LICENSE for details.

About

The tool for send mail without SMTP server (Using ConoHa API)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages