Before sending emails, you need to add and verify a domain:
Copy
# Add your domainahasend domains create example.com
This command will return DNS records that you need to configure, including SPF, DKIM, and DMARC records that must be added to your domain’s DNS settings.After configuring your DNS records, verify the domain:
ahasend messages send \ --from[email protected] \ --to[email protected] \ --subject "Hello from AhaSend CLI" \ --text "This is my first email sent using the AhaSend CLI!"
<!DOCTYPE html><html><head> <title>Welcome {{first_name}}!</title></head><body> <h1>Welcome to {{company}}, {{first_name}}!</h1> <p>We're excited to have you on board.</p> <p>Best regards,<br>The AhaSend Team</p></body></html>
# Default table formatahasend domains list# JSON format for automationahasend domains list --output json# CSV format for analysisahasend stats deliverability --output csv > stats.csv