azuma, kuniyuki

NAME

Haineko::Sendmail - Controller for /submit

DESCRIPTION

Haineko::Sendmail is a controller for url /submit and receive email data as a JSON format or as a parameter in URL.

EMAIL SUBMISSION

URL

    http://127.0.0.1:2794/submit

PARAMETERS(JSON)

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", ... }'

REPOSITORY

https://github.com/azumakuniyuki/Haineko

AUTHOR

azumakuniyuki <perl.org [at] azumakuniyuki.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.




Hosting generously
sponsored by Bytemark