Already have an account? Log in
We've sent a verification code to your email. Please enter it below to verify your account.
Didn't receive a code? Resend code
Email:
Member since:
Subscription Plan:
Email Usage: 0 / 10
Current Plan: Free
Emails Remaining: 10
Status: Active
Use your API token to send emails programmatically. Keep this token secret!
POST /api/send-email
Required headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_TOKEN
Request body example:
{ "from": "Your Name", // Note: Free plan users will have this overridden with "Email Server" "to": "recipient@example.com", "subject": "Hello from Email Service", "body": "<h1>Hello!</h1><p>This is a test email sent via API.</p>", "replyTo": "reply@yourdomain.com" // Optional }
Note: Free plan users cannot customize the "from" name (will be set to "Email Server") and emails will include a Juanito Email Server watermark.
curl -X POST \ https://email.juanitocomponent.com/api/send-email \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -d '{ "from": "Your Name", "to": "recipient@example.com", "subject": "Hello from Email Service", "body": "<h1>Hello!</h1><p>This is a test email sent via API.</p>" }'
// Using fetch API async function sendEmail() { const response = await fetch('https://email.juanitocomponent.com/api/send-email', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer YOUR_API_TOKEN' }, body: JSON.stringify({ from: 'Your Name', to: 'recipient@example.com', subject: 'Hello from Email Service', body: '<h1>Hello!</h1><p>This is a test email sent via API.</p>' }) }); const data = await response.json(); console.log(data); }
import requests import json url = "https://email.juanitocomponent.com/api/send-email" payload = { "from": "Your Name", "to": "recipient@example.com", "subject": "Hello from Email Service", "body": "<h1>Hello!</h1><p>This is a test email sent via API.</p>" } headers = { "Content-Type": "application/json", "Authorization": "Bearer YOUR_API_TOKEN" } response = requests.post(url, data=json.dumps(payload), headers=headers) print(response.text)
<?php $url = 'https://email.juanitocomponent.com/api/send-email'; $data = array( 'from' => 'Your Name', 'to' => 'recipient@example.com', 'subject' => 'Hello from Email Service', 'body' => '<h1>Hello!</h1><p>This is a test email sent via API.</p>' ); $options = array( 'http' => array( 'header' => "Content-type: application/json\r\nAuthorization: Bearer YOUR_API_TOKEN\r\n", 'method' => 'POST', 'content' => json_encode($data) ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); echo $result; ?>
{ "success": true, "messageId": "message-id-from-server", "fromEmail": "yourname@yourdomain.com", "emailsRemaining": 99, "message": "Email sent successfully" }
{ "success": false, "message": "Error sending email", "error": "Error details" }
Email:
You now have access to all the features of your new plan.