SMTP
Learn how to send emails via SMTP using Comify.
The SMTP provider enables you to deliver professional transactional emails to your customers through the Comify Platform using your own SMTP server. With a single API integration, you can create seamless multi-channel communication experiences while maintaining full control over your email infrastructure.
Getting Started
Implementing the SMTP email provider requires two primary steps: configuring your SMTP server details and setting up the SMTP integration within your Comify platform.
SMTP Server Requirements
To use the SMTP provider with Comify, you’ll need access to an SMTP server with the following information:
- SMTP Host: The address of your SMTP server (e.g., smtp.example.com)
- SMTP Port: The port used for SMTP communication (common ports include 25, 465, 587)
- Protocol: The security protocol used (TLS is recommended for secure email transmission)
- Username: Your SMTP server authentication username
- Password: Your SMTP server authentication password
Creating a Comify API Key
Before configuring the SMTP integration, you’ll need to generate a Comify API key for authentication:
- Access your Comify account dashboard.
- Navigate to the API Keys management section at https://cloud.comify.io/settings/api-keys.
- Select “Generate API Key” if not already generated.
- Provide a clear, descriptive name for your key (e.g., “SMTP Integration”) to facilitate future management.
- Copy and store this API key in a secure location. You’ll use this key in your application code to authenticate requests to the Comify platform.
Configuring SMTP Integration in Comify
To establish the connection between Comify and your SMTP server:
- Sign in to your Comify platform dashboard.
- Navigate to Integration Store > Add Integration > E-mail.
- From the available email service providers, select SMTP.
- Complete the following fields in the configuration form:
- Identifier: A unique name to identify this SMTP integration (e.g., “company_smtp”)
- Description: Optional description of the SMTP integration
- Host: Your SMTP server address (e.g., smtp.example.com)
- Port: The SMTP server port (e.g., 587)
- Protocol: Select TLS from the dropdown menu
- Username: Your SMTP server username
- Password: Your SMTP server password
- Click Save Integration to finalize the setup.
Creating Email Templates
After successfully configuring the SMTP integration, you can design email templates directly within the Comify platform:
- Navigate to the Manage Templates section in your Comify dashboard.
- Select the
Email
tab from the available channel options. - Click
Create Template
to begin the design process. - Choose from multiple template creation methods based on your preference and skill level:
- AI-Assisted Design: Utilize the
AI Writer
feature in the Email Editor section for automated content generation. - Manual HTML Editing: Select
Switch to HTML
in the Email Editor for direct code editing. - Import Existing Templates: Use the Chrome extension to copy HTML from existing templates for reuse in Comify.
- AI-Assisted Design: Utilize the
Sending Email Templates
Implement the following code examples in your application to trigger email template delivery:
Upon successful API request processing, you will receive a response containing a unique requestId and confirmation message:
Best Practices for SMTP Email Delivery
- Authenticate Your Domain: Set up SPF, DKIM, and DMARC records for your sending domain to improve deliverability.
- Monitor Bounce Rates: Keep track of email bounces and remove invalid addresses from your lists.
- Use TLS Encryption: Always configure your SMTP integration to use TLS for secure email transmission.
- Test Before Sending: Utilize Comify’s preview functionality to test your emails before sending them to customers.
- Implement Dynamic Content: Leverage Comify’s template variables to personalize your emails for each recipient.