Overview
SendLayer makes it easy to send transactional and marketing emails via a simple API. This guide walks you through sending your first email using the SendLayer API, with examples for popular programming languages.Prerequisites
Sending an Email
After setting up your domain and API key, you can send emails using the SDK or directly via HTTP requests.Replace
<apiKey>
with your actual SendLayer API key in the request header.params
variable to include the html
object. Then enter your HTML email as a string.
FAQ
Why do I need to authorize my domain?
Why do I need to authorize my domain?
Where do I find my API key?
Where do I find my API key?
You can create or retrieve your API key from your SendLayer dashboard under the Settings » API Keys section.
Can I send emails to multiple recipients?
Can I send emails to multiple recipients?
Yes, you can provide an array of email addresses in the
to
field or see our guide for more details.How do I attach files to my email?
How do I attach files to my email?
See our attachments guide for instructions on sending emails with attachments.
What should I do if my email is not delivered?
What should I do if my email is not delivered?
Check your domain authorization, verify your API key, and review the response from the API for any error messages. You can also consult the SendLayer dashboard for delivery status and logs.