SMTP Credentials
What is SMTP?
Simple Mail Transfer Protocol (SMTP for short) is a specialized protocol that acts as the backbone of email delivery. SMTP is one the most common way of sending and receiving emails over the internet.
To use this protocol and prevent others from using it to send emails from your domains, you need to set up Credentials to authenticate yourself with our SMTP servers.
How can I create SMTP Credentials?
To create SMTP Credentials, open the AhaSend Dashboard and
- Visit the Credentials tab of your account.
- Click on the Create Credential button.
- Select SMTP as the Type of the credential.
- Choose a name for the credential: This name is only used on the dashboard and is there to help you identify this credential later on in other parts of the dashboard. If you have multiple domains in your account, it's a good idea to include the domain name in the credential name, e.g. "Example.com Production", "Example.com Staging", etc.
- Select the Credential Mode (Production or Sandbox).
- Select the Credential Scope. The "Global" option is a good choice to start with, you can always change this later.
- Click on the Create Credential button to create the new credential and see the username and password.
How can I use SMTP Credentials?
Almost all programming languages have native support or established libraries for working with SMTP. We've prepared a guides for sending emails with SMTP for the languages below, but if you need help with a language not listed here, feel free to contact us at [email protected] and we'll be more than happy to help you start sending with SMTP.
API Keys
What are API Keys?
AhaSend supports sending emails using a HTTP (REST) API. While SMTP can be used for sending any number of emails, the HTTP API has better performance and throughput when it comes to sending a large number of emails. If you're sending more than 5-10 emails per second, consider using the HTTP APIs instead of SMTP to improve your delivery speeds.
API Keys are used to authenticate your HTTP requests with our server.
How can I create API Keys?
To create SMTP Credentials, open the AhaSend Dashboard and
- Visit the Credentials tab of your account.
- Click on the Create Credential button.
- Select API Key as the Type of the credential.
- Choose a name for the credential: This name is only used on the dashboard and is there to help you identify this credential later on in other parts of the dashboard. If you have multiple domains in your account, it's a good idea to include the domain name in the credential name, e.g. "Example.com Production", "Example.com Staging", etc.
- Select the Credential Mode (Production or Sandbox).
- Select the Credential Scope. The "Global" option is a good choice to start with, you can always change this later.
- Click on the Create Credential button to create the new credential and see the API Key.
How can I use API Keys?
AhaSend provides HTTP REST APIs for sending emails. You can use these APIs with any HTTP client with any programming language, or start testing them with tools such as Postman or HTTPie.
Complete API documentation in OpenApi 3.0 format is available here. You can use the specs to automatically generate client SDKs for a number of languages using the OpenAPI Generator
To learn more about using the API and and related code samples, please visit Sending emails using the AhaSend HTTP API.