E-Mail API für Entwickler: Maximale Zustellbarkeit effizient erreichen

TurboSMTPs E-Mail Versand API revolutioniert Ihren Entwicklungs-Workflow und bietet eine blitzschnelle Integration und sofortigen E-Mail-Versand. Erleben Sie die Einfachheit der Integration in jede Anwendung oder Website mit unserer API-Dokumentation – API E-Mail senden in großem Maßstab war noch nie so einfach.

E-Mail API für Entwickler: Maximale Zustellbarkeit effizient erreichen

E-Mail API für Entwickler, von Entwicklern

TurboSMTPs API zum Versenden von E-Mails macht die Integration von E-Mail-Diensten in Ihre Anwendung zum Kinderspiel. Mit unserer intuitiven E-Mail Versand API, nahtloser Integration und einer umfassenden Dokumentation können Sie den E-Mail-Versand schnell skalieren, ob 2 oder 2 Millionen E-Mails.
Nachfolgend finden Sie praktische Beispiele zur Integration unserer APIs mit den gängigsten Programmiersprachen.

curl -X "POST"^
  "https://api.turbo-smtp.com/api/v2/mail/send" ^
  -H "accept: application/json" ^
  -H "consumerKey: <CONSUMER_KEY>" ^
  -H "consumerSecret: <CONSUMER_SECRET>" ^
  -H "Content-Type: application/json" ^
  -d ^
"{^
  ""from"": ""hello@your-company.com"",^
  ""to"": ""Doe.Jhon@gmail.com,contact@global-travel.com"",^
  ""subject"": ""New live training session"",^
  ""cc"": ""cc_user@example.com"",^
  ""bcc"": ""bcc_user@example.com"",^
  ""content"": ""Dear partner, we are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills."",^
  ""html_content"": ""Dear partner, we are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.""^
}"
curl -X 'POST' \
  'https://api.turbo-smtp.com/api/v2/mail/send' \
  -H 'accept: application/json' \
  -H 'consumerKey:  <CONSUMER_KEY>' \
  -H 'consumerSecret: <CONSUMER_SECRET>' \
  -H 'Content-Type: application/json' \
  -d '{
  "from": "hello@your-company.com",
  "to": "Doe.Jhon@gmail.com,contact@global-travel.com",
  "subject": "New live training session",
  "cc": "cc_user@example.com",
  "bcc": "bcc_user@example.com",
  "content": "Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.",
  "html_content": "Dear partner,\nWe are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills."
}'
curl.exe -X 'POST' `
  'https://api.turbo-smtp.com/api/v2/mail/send' `
  -H 'accept: application/json'  `
  -H 'consumerKey:  <CONSUMER_KEY>'  `
  -H 'consumerSecret: <CONSUMER_SECRET>'  `
  -H 'Content-Type: application/json' `
  -d @"
{
  \"from\": \"hello@your-company.com\",
  \"to\": \"Doe.Jhon@gmail.com,contact@global-travel.com\",
  \"subject\": \"New live training session\",
  \"cc\": \"cc_user@example.com\",
  \"bcc\": \"bcc_user@example.com\",
  \"content\": \"Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.\",
  \"html_content\": \"Dear partner,\nWe are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills.\"
}
"@
using System.Text;
using System.Text.Json;

public class Program
{
    public static async Task Main(string[] args)
    {
        var consumerKey = "<CONSUMER_KEY>";
        var consumerSecret = "<CONSUMER_SECRET>";

        string url = "https://api.turbo-smtp.com/api/v2/mail/send";
        
        var mailData = new { 
            from = "hello@your-company.com", 
            to = "Doe.Jhon@gmail.com,contact@global-travel.com",
            subject = "New live training session",
            cc = "cc_user@example.com",
            bcc = "bcc_user@example.com",
            content = "Dear partner, we are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.",
            html_content = "Dear partner, We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills."
        }; // Mail Data setup.

        using (HttpClient httpClient = new HttpClient())
        {
            // JSON data seriaization
            var json = JsonSerializer.Serialize(mailData);
            var content = new StringContent(json, Encoding.UTF8, "application/json");

            // Set authentication headers
            content.Headers.Add("consumerKey", consumerKey);
            content.Headers.Add("consumerSecret", consumerSecret);

            // Trigger POST request
            using (var response = await httpClient.PostAsync(url, content))
            {
                if (response.IsSuccessStatusCode)
                {
                    var result = await response.Content.ReadAsStringAsync();
                    Console.WriteLine("Response: " + result);
                }
                else
                {
                    Console.WriteLine("Request error: " + response.StatusCode);
                }
            }
        }
    }
}
package main

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"net/http"
)

func main() {
	// setup.
	url := "https://api.turbo-smtp.com/api/v2/mail/send"
	consumerkey := "<CONSUMER_KEY>"
	consumerSecret := "<CONSUMER_SECRET>"	

	// Body Data.
	data := []byte(`{
		"from": "hello@your-company.com",
		"to": "Doe.Jhon@gmail.com,contact@global-travel.com",
		"subject": "New live training session",
		"cc": "cc_user@example.com",
		"bcc": "bcc_user@example.com",
		"content": "Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.",
		"html_content": "Dear partner,\nWe are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills."
		}`)

	// Create POST Resquest.
	req, err := http.NewRequest("POST", url, bytes.NewBuffer(data))
	if err != nil {
		fmt.Println("An Error has occured:", err)
		return
	}

	// Set Request Headers.
	req.Header.Set("Content-Type", "application/json")
	req.Header.Set("accept", "application/json")
	req.Header.Set("consumerKey", consumerkey)
	req.Header.Set("consumerSecret", consumerSecret)		

	// Perform HTTP Request.
	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		fmt.Println("An Error has occured sending the request:", err)
		return
	}
	defer resp.Body.Close()

	// Read Server Response
	body, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		fmt.Println("An Error has occured reading the server response:", err)
		return
	}

	// Print Server Response
	fmt.Println(string(body))
}
const https = require('https');

//setup credentials.
const consumerKey = '<CONSUMER_KEY>';
const consumerSecret = '<CONSUMER_SECRET>';

//setup body.
const sendData = {
    from: 'hello@your-company.com',
    to: 'Doe.Jhon@gmail.com,contact@global-travel.com',
    subject: 'New live training session',
    cc: 'cc_user@example.com',
    bcc: 'bcc_user@example.com',
    content: 'Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.',
    html_content: 'Dear partner, <br>We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills.',
};


//setup request options.
const options = {
    hostname: 'api.turbo-smtp.com',
    path: '/api/v2/mail/send',
    method: 'POST',
    headers: {
        'Accept': 'application/json',
        'Consumerkey': consumerKey,
        'Consumersecret': consumerSecret,
        'Content-Type': 'application/json',
    },
};

//perform http request
const req = https.request(options, (res) => {
    let responseData = '';

    res.on('data', (chunk) => {
        responseData += chunk;
    });

    res.on('end', () => {
        console.log('Response:', responseData);
    });
});

//handle request error.
req.on('error', (error) => {
    console.error('Error:', error.message);
});

//write response.
req.write(JSON.stringify(sendData));
req.end();
import http.client
import json

# setup credentials.
consumerKey = '<CONSUMER_KEY>'
consumerSecret = '<CONSUMER_SECRET>'

# setup body.
data = {
    'from': 'hello@your-company.com',
    'to': 'Doe.Jhon@gmail.com,contact@global-travel.com',
    'subject': 'New live training session',
    'cc': 'cc_user@example.com',
    'bcc': 'bcc_user@example.com',
    'content': 'Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.',
    'html_content': 'Dear partner, <br>We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills.'
}

# convert body to json.
data_json = json.dumps(data)

# setup headers
headers = {
        'Accept': 'application/json',
        'Consumerkey': consumerKey,
        'Consumersecret': consumerSecret,
        'Content-Type': 'application/json',
}

# Setup URL and endpoint
url = 'api.turbo-smtp.com'
endpoint = '/api/v2/mail/send'

# Create HTTP connection.
conn = http.client.HTTPConnection(url)

# Perform POST request.
try:
    conn.request('POST', endpoint, body=data_json, headers=headers)
    response = conn.getresponse()

    # Read Server response.
    response_data = response.read().decode('utf-8')
    print(response_data)

    # Close connection.
    conn.close()
except http.client.HTTPException as e:
    # Handle HTTP errors
    print('Error on HTTP request:', e)
except ConnectionError as e:
    # Handle Connection errors
    print('Error on HTTP connection:', e)
require 'net/https'
require 'uri'

# URL of the endpoint you want to send the POST request to
url = URI.parse('https://api.turbo-smtp.com/api/v2/mail/send')
consumerKey = "<CONSUMER_KEY>";
consumerSecret = "<CONSUMER_SECRET>";

# Data to send in the request body
data = {
    'from' => 'hello@your-company.com',
    'to' => 'Doe.Jhon@gmail.com,contact@global-travel.com',
    'subject' => 'New live training session',
    'cc' => 'cc_user@example.com',
    'bcc' => 'bcc_user@example.com',
    'content' => 'Dear partner,\nWe are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.',
    'html_content' => 'Dear partner, <br>We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills.'
}

# Create the HTTPS connection
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

# Create the request object
request = Net::HTTP::Post.new(url.path)
request["Consumerkey"] = consumerKey 
request["Consumersecret"] = consumerSecret 
request["Content-Type"] = "application/json" 
request["Accept"] = "application/json" 

request.set_form_data(data)

# Send the request and get the response
response = http.request(request)

# Print the response body
puts response.body
<?php

$send_data = [
    "from" => "hello@your-company.com",
    "to" => "Doe.Jhon@gmail.com,contact@global-travel.com",
    "subject" => "New live training session",
    "cc" => "cc_user@example.com",
    "bcc" => "bcc_user@example.com",
    "content" => "Dear partner,\n We are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.",
    "html_content" => "Dear partner,<br />We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills."
];

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://api.turbo-smtp.com/api/v2/mail/send');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($send_data));

$headers = array();
$headers[] = 'Accept: application/json';
$headers[] = 'Consumerkey: <CONSUMER_KEY>';
$headers[] = 'Consumersecret: <CONSUMER_SECRET>';
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
} else if ($http_code !== 200) {
    echo "Request error: ".$http_code;
} else {
    echo "Response: ".$result;
}
curl_close($ch);
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;

public class TurboSMTPMailExample {
    public static void main(String[] args) {
        try {
            // Specify the URL of the API endpoint
            URL url = new URL("https://api.turbo-smtp.com/api/v2/mail/send");

            // Specify Credentials
            String Consumerkey = "<CONSUMER_KEY>";
            String Consumersecret = "<CONSUMER_SECRET>";

            // Open a connection to the URL
            HttpURLConnection connection = (HttpURLConnection) url.openConnection();

            // Set the request method to POST
            connection.setRequestMethod("GET");

            // Set the request headers
            connection.setRequestProperty("Content-Type", "application/json");
            connection.setRequestProperty("Accept", "application/json");
            connection.setRequestProperty("Consumerkey", Consumerkey);
            connection.setRequestProperty("Consumersecret", Consumersecret);

            // Enable input and output streams
            connection.setDoInput(true);
            connection.setDoOutput(true);

            // Define the request body (as JSON)
            //String requestBody = "{\"from\": \"user@example.com\", \"to\": \"user@example.com,user2@example.com\", \"subject\": \"This is a test message\"}";
            
            String requestBody = "{" +
                                "\"from\": \"user@example.com\", " +
                                "\"to\": \"user@example.com,user2@example.com\", " +
                                "\"subject\": \"This is a test message\", " +
                                "\"cc\": \"cc_user@example.com\", " +
                                "\"bcc\": \"bcc_user@example.com\", " +
                                "\"content\": \"Dear partner. We are delighted to invite you to an exclusive training session on UX Design. This session is designed to provide essential insights and practical strategies to enhance your skills.\", " +
                                "\"html_content\": \"Dear partner,<br />We are delighted to invite you to an exclusive training session on <strong>UX Design</strong>. This session is designed to provide essential insights and practical strategies to enhance your skills.\" " +
                                "}";            
            
            DataOutputStream outputStream = new DataOutputStream(connection.getOutputStream());
            outputStream.writeBytes(requestBody);
            outputStream.flush();
            outputStream.close();

            // Get the response code
            int responseCode = connection.getResponseCode();

            // Read the response from the server
            BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String line;
            StringBuilder response = new StringBuilder();
            while ((line = reader.readLine()) != null) {
                response.append(line);
            }
            reader.close();

            // Print the response
            System.out.println("Response Code: " + responseCode);
            System.out.println("Response Body: " + response.toString());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

E-Mails senden mit Ihrer bevorzugten Programmiersprache

Unsere APIs bieten Entwicklern die Flexibilität, E-Mail-Lösungen mühelos mit ihren bevorzugten Programmiersprachen zu integrieren. Ob Python, cURL, Ruby oder eine andere gängige Programmiersprache – mit unserer umfassenden API E-Mail senden leicht gemacht, ganz nach Ihren Anforderungen.

TurboSMTP – Die wichtigsten Vorteile

Hier sind vier überzeugende Gründe, sich für TurboSMTP zu entscheiden: unübertroffene E-Mail-Zustellbarkeit, datengestützte Erkenntnisse durch Analytics, robuste Datenschutz- und Sicherheitslösungen sowie ein dedizierter 24/7-Support für ein sorgenfreies E-Mail-Erlebnis.

Leistungsstarke Infrastruktur für hohe E-Mail-Zustellbarkeit

Unsere Infrastruktur skaliert nahtlos von wenigen bis zu mehreren Millionen E-Mails und vereinfacht den Massenversand mit cloudbasierten Lösungen, die sowohl SMTP als auch RESTful API-Integration unterstützen.
Darüber hinaus gewährleistet TurboSMTP einen schnellen E-Mail-Versand, der entscheidend ist, um die Kommunikation zeitnah zu halten und die Verbindung zu Ihrem Publikum zu stärken.

Leistungsstarke Infrastruktur für hohe E-Mail-Zustellbarkeit
Kampagnen optimieren mit E-Mail-Metriken & Analytics

Kampagnen optimieren mit E-Mail-Metriken & Analytics

Die Statistik- und Reporting-Tools von TurboSMTP transformieren Ihre E-Mail-Strategie mit umsetzbaren Erkenntnissen. Unser Analytics-Dashboard liefert Echtzeit-Metriken zu Zustellbarkeit, Öffnungen, Klicks und Bounces und ermöglicht Ihnen eine effektive Kampagnenoptimierung. Verfolgen Sie das Verhalten der Empfänger, um Ihre Nachrichten zu verfeinern, das Engagement zu steigern und die Conversions zu erhöhen. Mit TurboSMTP treffen Sie datengestützte Entscheidungen für zielgerichtete Kampagnen, die einen besseren ROI erzielen und die Verbindung zu Ihrem Publikum vertiefen.

E-Mail-Datenschutz und Sicherheit: Grundlegende Werte

Unser E-Mail-Dienst wurde mit Blick auf Ihre Datenschutz und Sicherheit entwickelt und integriert überlegene Verschlüsselungsprotokolle zum Schutz Ihrer Daten.
Die strikte Einhaltung der Datenschutzgesetze ist der Kern unseres Dienstes und stellt sicher, dass jede E-Mail gegen unbefugten Zugriff geschützt ist und Ihre privaten Nachrichten stets sicher bleiben.

E-Mail-Datenschutz und Sicherheit: Grundlegende Werte
Support immer verfügbar, wenn Sie ihn brauchen

Support immer verfügbar, wenn Sie ihn brauchen

Bei TurboSMTP bieten wir einen 24/7-Support, der über den reinen Service hinausgeht: Es ist ein gemeinsames Engagement. Unser dediziertes Team steht Ihnen stets zur Seite und ist bereit, fachkundige Beratung und schnelle Lösungen zu liefern. Mit unserem Engagement für Exzellenz stellen wir sicher, dass Ihr E-Mail-Erlebnis reibungslos und sorgenfrei ist. Verlassen Sie sich auf uns für zuverlässigen Support bei jedem Schritt des E-Mail-Versandprozesses.

Starten Sie mit der E-Mail API von TurboSMTP

Folgen Sie diesen drei einfachen Schritten, um TurboSMTP nahtlos in Ihre Anwendung zu integrieren.

Registrieren Sie sich kostenlos und erhalten Sie 6.000 kostenlose E-Mails pro Monat.

Rufen Sie Ihren API-Schlüssel aus Ihrem Dashboard ab.

Folgen Sie unserer API-Dokumentation, um Ihre Integration zu starten.