The tool for send mail without SMTP server (Using ConoHa API)
You need ConoHa ( https://www.conoha.jp/conoha/ ) account for this tool use.
git clone https://github.com/kmamiya/serverless-email-send-tool.git
cd serverless-email-send-tool/bin
- rename or copy from config.json.template
- edit config.json
./notify_mail.py config.json 'Mail subject' <(echo 'Hello')
(on bash)
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
http://logicalrabbit.jp/serverless-email-send-tool
Copyright (c) 2016 Kentarou Mamiya. See LICENSE for details.