Trusted by:
The Best Applications Require the Strongest Email Foundation
Built on SocketLabs Hurricane MTA.
Email APIs made to scale with you.
Fault tolerant architecture: 99.999% system uptime.
Access to detailed reporting and analytics.
Integrate with Your Applications in as Little as 5 Minutes with Our Quick-Start Code Libraries:
SocketLabsClient.QuickSend( 000001, //Your SocketLabs ServerId "YOUR-API-KEY", //Your Injection API Key "[email protected]", //The To address for your message "[email protected]", //The From address for your message "Lorem Ipsum", //The Subject line for your message "<html>Lorem Ipsum</html>", //The HTML content for your message "Lorem Ipsum" //The plaintext content for your message );
$client = new SocketLabsClient(exampleConfig::000001, "YOUR-API-KEY"); $message = new BasicMessage(); $message->subject = "Sending A Basic Message"; $message->htmlBody = "<html>This is the Html Body of my message.</html>"; $message->plainTextBody = "This is the Plain Text Body of my message."; $message->from = new EmailAddress("[email protected]"); $message->replyTo = new EmailAddress("[email protected]"); //A basic message supports up to 50 recipients and supports several different ways to add recipients $message->addToAddress("[email protected]"); //Add a To address by passing the email address $message->addCcAddress("[email protected]", "Recipient #2"); //Add a CC address by passing the email address and a friendly name $message->addBccAddress(new EmailAddress("[email protected]")); //Add a BCC address by passing an EmailAddress object $response = $client->send($message);
const {SocketLabsClient} = require('@socketlabs/email'); const client = new SocketLabsClient(parseInt(process.env.SOCKETLABS_SERVER_ID), process.env.SOCKETLABS_INJECTION_API_KEY); const message = { to: "[email protected]", from: "[email protected]", subject: "Hello from Node.js", textBody: "This message was sent using the SocketLabs Node.js library!", htmlBody: "<html>This message was sent using the SocketLabs Node.js library!</html>", messageType: 'basic' } client.send(message);
from socketlabs.injectionapi import SocketLabsClient from socketlabs.injectionapi.message.basicmessage import BasicMessage from socketlabs.injectionapi.message.emailaddress import EmailAddress # Your SocketLabs ServerId and Injection API key client = SocketLabsClient(10000, "YOUR-API-KEY"); message = BasicMessage() message.subject = "Sending A BasicMessage" message.html_body = "<html>This is the Html Body of my message.</html>" message.plain_text_body = "This is the Plain Text Body of my message."; message.from_email_address = EmailAddress("[email protected]") # A basic message supports up to 50 recipients # and supports several different ways to add recipients # Add a To address by passing the email address message.to_email_address.append(EmailAddress("[email protected]")) message.to_email_address.append(EmailAddress("[email protected]", "Recipient #2")) # // Adding CC Recipients message.add_cc_email_address("[email protected]") message.add_cc_email_address("[email protected]", "Recipient #4") # Adding Bcc Recipients message.add_bcc_email_address(EmailAddress("[email protected]")) message.add_bcc_email_address(EmailAddress("[email protected]", "Recipient #6")) response = client.send(message)
import ( "github.com/socketlabs/socketlabs-go/injectionapi" "github.com/socketlabs/socketlabs-go/injectionapi/message" ) func main() { client := injectionapi.CreateClient(000001, "YOUR-API-KEY") basic := message.BasicMessage{} basic.Subject = "Sending a Basic Message" basic.HtmlBody = "<html>This is the Html Body of my message.</html>" basic.PlainTextBody = "This is the Plain Text Body of my message." basic.From = message.EmailAddress{EmailAddress: "[email protected]"} basic.ReplyTo = message.EmailAddress{EmailAddress: "[email protected]"} //A basic message supports up to 50 recipients and supports several different ways to add recipients basic.AddToEmailAddress("[email protected]") //Add a To address by passing the email address basic.AddCcEmailAddress("[email protected]") //Add a CC address by passing the email address and a friendly name basic.AddBccEmailAddress("[email protected]") //Add a BCC address by passing the email address //Send the message _, _ = client.SendBasic(&basic) }
SocketLabsClient client = new SocketLabsClient(000001, "YOUR-API-KEY"); //Your SocketLabs ServerId and Injection API key BasicMessage message = new BasicMessage(); message.setSubject("Sending A Test Message (Basic Send)"); message.setHtmlBody("<html><body><h1>Sending A Test Message</h1><p>This is the Html Body of my message.</p></body></html>"); message.setPlainTextBody("This is the Plain Text Body of my message."); message.setFrom(new EmailAddress("[email protected]")); //A basic message supports up to 50 recipients and supports several different ways to add recipients // Adding To Recipients message.getTo().add(new EmailAddress("[email protected]")); message.getTo().add(new EmailAddress("[email protected]", "Recipient #2")); // Adding CC Recipients message.addCcEmailAddress(new EmailAddress("[email protected]", "Recipient #3" )); // Adding Bcc Recipients message.addBccEmailAddress("[email protected]"); message.addBccEmailAddress("[email protected]", "Recipient #2"); SendResponse response = client.send(message);
require "socketlabs-injectionapi" include SocketLabs::InjectionApi include SocketLabs::InjectionApi::Message message = BasicMessage.new message.subject = "Sending A Basic Message" message.html_body = "This is the Html Body of my message." message.plain_text_body = "This is the Plain Text Body of my message." message.from_email_address = EmailAddress.new("[email protected]") # Add a To address by passing the email address message.to_email_address.push("[email protected]") # Your SocketLabs ServerId and Injection API key client = SocketLabsClient.new(10000, "YOUR-API-KEY") response = client.send(message)
Sending, Alerts, Parsing,
Reporting, and More
We have flexible APIs that will elevate your application. Start building with our most popular APIs.
Injection API
Send outbound email from your app or website through HTTP POST requests.
Notification API (Webhook)
Receive real-time delivery status and engagement notifications with webhooks.
Inbound Parsing API
Full deconstruction of email messages including text, html, attachments, custom headers, and much more.
Reporting API
Access statistics about a mail stream in scenarios where webhooks are not appropriate.
Suppression API
Programmatically search, add, or remove addresses from your server’s Suppression List.
A Better Email Experience
Support – Thorough API documentation and live developer support with real industry experts.
Reliability – 99.999% system uptime due to fault tolerant architecture built on the SocketLabs Hurricane MTA.
Quick and easy setup – Access to code libraries and samples that can help get you sending in minutes.
Deliverability – Lost email could mean lost customers – our technology is built around successful and reliable delivery of your important messages.
Reporting – SocketLabs comprehensive delivery reporting and analytics dashboard help turn insights into actions that improve email delivery.
Security – Privacy Shield certified, GDPR and CCPA compliant, and M3AAWG member.