Send a message by connecting directly to the mail server using local mail configuration.
Request
Body Params multipart/form-dataRequired
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://localhost:18321/v1/message/send' \
--form'token="{{token}}"' \
--form'mail_id="mail_demo_001"' \
--form'to="[email protected]"' \
--form'cc="[email protected]"' \
--form'bcc=""' \
--form'subject="Sample message from local API"' \
--form'html_body="<p>Hello, this is a sample HTML message.</p>"' \
--form'plain_text_body="Hello, this is a sample plain text message."' \
--form'in_reply_to="<[email protected]>"' \
--form'references="[\"<[email protected]>\"]"' \
--form'priority="3"' \
--form'request_read_receipt="-1"' \
--form'attachments="[{\"file_name\":\"demo.txt\",\"content_type\":\"text/plain\",\"content_base64\":\"SGVsbG8=\"}]"'