consumerKey and consumerSecret headers and a JSON body containing the standard message fields. Swap in your own credentials and addresses, then run the code to send your first email.
Before you run the examples
Use credentials with HTTP API Sending enabled and a sender domain configured for your account. Python uses therequests package (python -m pip install requests); the Node.js example uses axios (npm install axios). PHP requires its cURL extension, and the Java example requires Java 11 or later. The C# example uses top-level statements in a modern .NET console project.
To send through turboSMTP’s European infrastructure, replace api.turbo-smtp.com with api.eu.turbo-smtp.com. turboSMTP is an Italian company with European servers; see hosts and data residency.
SDKs
turboSMTP publishes official source repositories with API clients and examples. See Official SDKs for their status and requirements.C# SDK
C# source and examples. The SDK project currently targets .NET Framework 4.8.
PHP SDK
PHP source and examples. Check runtime requirements in the repository.