Quick Start
This guide will help you send your first email using the AhaSend CLI in just a few minutes.Prerequisites
Before you begin, make sure you have:- Installed the AhaSend CLI
- An AhaSend account (sign up here)
- Your API key and Account ID from the dashboard
Step 1: Authentication
First, authenticate with your AhaSend API credentials:- Your API key
- Your Account ID
- A profile name (default: “default”)
Your credentials are securely stored in
~/.ahasend/config.yaml
for future use.Step 2: Add a Sending Domain
Before sending emails, you need to add and verify a domain:DNS propagation can take up to 24 hours, but typically completes within minutes.
Step 3: Send Your First Email
Simple Text Email
HTML Email
Email with Both HTML and Text
Step 4: Test with Sandbox Mode
Before sending real emails, test your integration using sandbox mode:Sandbox mode simulates the entire email sending process without actually delivering emails. Perfect for testing!
Step 5: Send Batch Emails
Prepare Recipients File
Create a CSV file with recipient data (recipients.csv
):
Create an HTML Template
Create a template file (welcome.html
):
Send Batch Emails
- Send personalized emails to each recipient
- Show a progress bar
- Display performance metrics
- Save any failed recipients for retry
Step 6: Monitor Your Emails
Check Delivery Statistics
List Recent Messages
Common Patterns
Using Different Output Formats
Working with Multiple Environments
Adding Attachments
Scheduling Emails
What’s Next?
Now that you’ve sent your first emails, explore more features:Authentication
Learn about profiles and credential management
Message Commands
Explore all email sending options
Batch Processing
Send high-volume emails efficiently
Templates
Use templates for personalized emails