All URIs are relative to https://api.mimepost.com/v1/
Method | HTTP request | Description |
---|---|---|
send_email | POST /emails/ | Send email |
ApiResponse send_email(body)
Send email
# load the gem
require 'mimepost'
# setup authorization
Mimepost.configure do |config|
# Configure API key authorization: api_key
config.api_key['X-Auth-Token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['X-Auth-Token'] = 'Bearer'
end
api_instance = Mimepost::EmailsApi.new
body = Mimepost::Email.new # Email | Single Email object
begin
#Send email
result = api_instance.send_email(body)
p result
rescue Mimepost::ApiError => e
puts "Exception when calling EmailsApi->send_email: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Single Email object |
- Content-Type: application/json
- Accept: application/json