Skip to main content

Sending a Basic Email

The simplest way to send an email with Unosend. Works with any programming language!

Response

response.json

Email Options

CC & BCC

Send copies to additional recipients

Attachments

Include files with your emails

Reply-To

Set a different reply address
cURL

Sender Name Formats

You can specify the sender name in different ways:
sender-formats.txt

Sending to Multiple Recipients

Send the same email to multiple recipients:
cURL
All recipients will see each other’s addresses. For private sends, use BCC or send individual emails.

Sending Attachments

Attach files to your emails using base64 encoding:
cURL

Node.js Example

attachments.js

Supported Content Types

  • application/pdf
  • image/png
  • image/jpeg
  • text/csv
  • text/plain
  • application/zip
  • application/json
  • text/html

Rich HTML Emails

Create beautiful HTML emails with styling:
html-email.html
Best Practice: Always include a plain text version (text) for email clients that don’t support HTML.

Error Handling

Common error codes and how to handle them:
error-response.json

Best Practices

1

Verify your domain

Always verify your sending domain for better deliverability
2

Include both versions

Include both HTML and plain text versions of your email
3

Use inline CSS

Use inline CSS for HTML emails (external stylesheets often don’t work)
4

Keep attachments small

Keep attachment sizes under 10MB for best delivery
5

Use tags

Use tags to track email campaigns and analyze performance