Haineko::Sendmail - Controller for /submit
Haineko::Sendmail is a controller for url /submit and receive email data as a JSON format or as a parameter in URL.
http://127.0.0.1:2794/submit
To send email via Haineko, POST email data as a JSON format like the following:
{ ehlo: 'your-host-name.as.fqdn' mail: 'kijitora@example.jp' rcpt: [ 'cats@cat-ml.kyoto.example.jp' ] header: { from: 'kijitora <kijitora@example.jp>' subject: 'About next meeting' relpy-to: 'cats <ml@cat-ml.kyoto.example.jp>' charset: 'ISO-2022-JP' } body: 'Next meeting opens at midnight on next thursday' } $ curl 'http://127.0.0.1:2794/submit' -X POST -H 'Content-Type: application/json' \ -d '{ ehlo: "[127.0.0.1]", mail: "kijitora@example.jp", ... }'
https://github.com/azumakuniyuki/Haineko
azumakuniyuki <perl.org [at] azumakuniyuki.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Haineko, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Haineko
CPAN shell
perl -MCPAN -e shell install Haineko
For more information on module installation, please visit the detailed CPAN module installation guide.