API Documentation
Everything you need to integrate our email service
Endpoint
POST https://email.getsetdeployed.com/send
Request Body
{
{
"id": "your_client_id",
"subject": "Email Subject",
"body": "Email Body",
"recipient_list": ["recipient@example.com"],
"smtp_host": "smtp.example.com",
"smtp_port": 587,
"email_host_user": "your_email@example.com",
"email_host_password": "your_password",
"use_tls": true,
"use_ssl": false,
"attachments": [
{
"filename": "document.pdf",
"content": "base64_encoded_content_here",
"content_type": "application/pdf"
}
]
}
}
Example Usage
Ready-to-use code samples
cURL Example
curl -X POST https://email.getsetdeployed.com/send \
-H "Content-Type: application/json" \
-d '{
"id": "Id You Get From GETSETDEPLOYED (Contact Us for New ids)",
"subject": "Test Email",
"body": "Hello, World!
",
"recipient_list": ["recipient@example.com"],
"smtp_host": "smtp.example.com",
"smtp_port": 587,
"email_host_user": "your-email@example.com",
"email_host_password": "your-password",
"use_tls": true,
"use_ssl": false,
"attachments": [
{
"filename": "document.pdf",
"content": "base64_encoded_content_here",
"content_type": "application/pdf"
}
]
}'
React Example
import axios from "axios";
const sendEmail = async () => {
try {
// Function to convert file to base64
const fileToBase64 = (file) => {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onload = () => resolve(reader.result.split(',')[1]);
reader.onerror = reject;
reader.readAsDataURL(file);
});
};
// Example: Handle file input
const fileInput = document.querySelector('input[type="file"]');
const file = fileInput.files[0];
const base64Content = await fileToBase64(file);
const response = await axios.post("https://email.getsetdeployed.com/send", {
id: "Id You Get From GETSETDEPLOYED (Contact Us for New ids)",
subject: "Test Email",
body: "Hello, World!
",
recipient_list: ["recipient@example.com"],
smtp_host: "smtp.example.com",
smtp_port: 587,
email_host_user: "your-email@example.com",
email_host_password: "your-password",
use_tls: true,
use_ssl: false,
attachments: [
{
filename: file.name,
content: base64Content,
content_type: file.type
}
]
});
console.log("Email sent successfully:", response.data);
} catch (error) {
console.error("Error sending email:", error);
}
};
sendEmail();
Python Example
import requests
import base64
url = "https://email.getsetdeployed.com/send"
# Function to encode file to base64
def encode_file(file_path):
with open(file_path, 'rb') as file:
return base64.b64encode(file.read()).decode('utf-8')
# Example file attachment
file_path = "path/to/your/document.pdf"
base64_content = encode_file(file_path)
payload = {
"id": "Id You Get From GETSETDEPLOYED (Contact Us for New ids)",
"subject": "Test Email",
"body": "Hello, World!
",
"recipient_list": ["recipient@example.com"],
"smtp_host": "smtp.example.com",
"smtp_port": 587,
"email_host_user": "your-email@example.com",
"email_host_password": "your-password",
"use_tls": True,
"use_ssl": False,
"attachments": [
{
"filename": "document.pdf",
"content": base64_content,
"content_type": "application/pdf"
}
]
}
response = requests.post(url, json=payload)
if response.status_code == 200:
print("Email sent successfully:", response.json())
else:
print("Error sending email:", response.status_code, response.text)
Key Features
Everything you need to know about our Email API
API Endpoints
Simple POST endpoint for email sending with comprehensive response handling
Advanced Features
Powerful capabilities for your email infrastructure
Reliable Delivery
High deliverability rates with real-time tracking and reporting
Custom SMTP
Configure your own SMTP server for complete infrastructure control
Smart Error Handling
Comprehensive error reporting with actionable solutions
Get in Touch
Have questions? We'd love to hear from you.
GetSetDeployed
Your Email Infrastructure Partner