Overview
What is its Purpose?
What is its Purpose?
Secure Access
Central Management
Advanced Parameters
Environment-Based Settings
Working Principle
Working Principle
Connection Initialization
Connection Pool Management
Authentication
Data Communication
Connection Management
Error Management
Usage Areas
Usage Areas
Automatic Notifications
Secure Mailboxes
PDF Attachment Communication
Periodic Reports
Technical Features and Capabilities
Basic Features
Basic Features
STARTTLS Support
enableStartTls toggle.Conditional Authentication
auth is active, username/password becomes mandatory and credential verification is performed.Sender Identity Management
from field.Environment-Based Configuration
Enable/Disable Control
Advanced Features
Advanced Features
Additional SMTP Properties
additionalProperties.Address-Based Test Sending
addressToTest field and Test Mail button.Deployment to Worker
deployToWorker flag.Connection Test Feature
Export/Import Feature
Connection Monitoring
Connection Parameters
Required Parameters
Required Parameters
Name
Example Value:
Production_EmailSMTPNotes: Should not start with space, special characters should not be used
Host
Example Value:
smtp.mailprovider.comNotes: 255 character limit
Port
Example Value:
587Notes: 587 recommended for TLS, 465 for SSL
From
Example Value:
[email protected]Notes: Must be valid email format
Default Encoding
Example Value:
UTF-8Notes: Comes as UTF-8 by default in UI
Username (Auth on)
Example Value:
alert.botNotes: Required when Auth toggle is on
Password (Auth on)
Example Value:
••••••Notes: Required when Auth toggle is on
Optional Parameters
Optional Parameters
Description
Default Value: Empty
Recommended Value: Example: Prod alarm mail channel
Enable STARTTLS
Default Value: false
Recommended Value: true in environments where TLS is mandatory
Auth
Default Value: false
Recommended Value: true in most providers
AddressToTest
Default Value: Empty
Recommended Value: Dev team distribution list
Additional Properties
Default Value: Empty array
Recommended Value: Like
mail.smtp.connectiontimeout=15000DeployToWorker
Default Value: true
Recommended Value: Kept true in high traffic scenarios
Timeout and Connection Pool Parameters
Timeout and Connection Pool Parameters
Connection Timeout
Default: 30000
Min: 5000 | Max: 60000
Unit: milliseconds
Request Timeout
Default: 60000
Min: 10000 | Max: 120000
Unit: milliseconds
Pool Size
Default: 1
Min: 1 | Max: 5
Unit: count
Mail Retry Delay
Default: 2000
Min: 1000 | Max: 10000
Unit: milliseconds
Usage Scenarios
Alarm Notifications
Solution: Host=smtp.ops.local, From=[email protected], Auth=true
Expected Behavior: Alarm mail goes to recipient list via TLS
User Verification Codes
Solution: Port=587, Enable STARTTLS=true, DeployToWorker=true
Expected Behavior: OTP message is transmitted within seconds
Financial Reporting
Solution: AdditionalProperties with
mail.smtp.writetimeout=120000Expected Behavior: Large attachments sent without timeout
Test Environment Smoke Test
Solution: Environment=Test, Auth=false, From=[email protected]
Expected Behavior: Messages fall to sandbox SMTP
External Service Failover
Solution: Host=primary, AdditionalProperties.failover=smtp2
Expected Behavior: Second host is used without flow interruption
Bulk Campaign
Solution: Pool Size=5, DeployToWorker=true, Description=Campaign
Expected Behavior: Workers distribute load and increase throughput
Connection Configuration
Creating New Email Connection

Configuration Steps
Going to Creation Page
- Click Connection option from left menu on Apinizer main screen.
- Select Email option from opened submenu.
- Email Connection list page opens.
- Click [+ Create] button in top right corner of page.
- New Email Connection creation form opens.
Entering Basic Information
- Find Enable Status toggle at top of form.
- Set toggle to Active position (comes active by default).
- If you want to make Connection passive, set toggle to Passive position.
- Passive connections cannot be used in Integration Flows but their configurations are saved.
- Enter a unique connection name in Name field.
- Name examples:
Production_EmailSMTP,Test_EmailConnection,Dev_SMTP_Alerts - Name rules:
- Should not start with space
- Special characters should not be used (recommended: letter, number, underscore)
- Maximum 255 characters
- System automatically checks as you type name:
- Green checkmark: Name is available
- Red X mark: Name already exists, select different name
- Enter text describing the purpose of connection in Description field.
- Example descriptions:
- “SMTP channel for alarms”
- “Production environment email notifications”
- “Dummy SMTP connection for test environment”
- Maximum 1000 character limit exists.
- This field can be left empty.
Environment Selection
- Find Environment dropdown menu.
- Open dropdown menu and select one of the following options:
- Development: For development environment
- Test: For test environment
- Production: For production environment
- Different connection parameters can be defined for each environment.
- Environment selection determines in which environment connection will be active.
- Connections with same name can be created separately for different environments.
SMTP Server Information
- Enter SMTP server address in Host field.
- Host format:
- FQDN (Fully Qualified Domain Name):
smtp.mailprovider.com - IP address:
192.168.1.100 - Maximum 255 character limit exists.
- Get correct host address from your SMTP provider’s documentation.
- Enter SMTP port number in Port field.
- Common port numbers:
- 25: Standard SMTP (usually unencrypted)
- 465: SMTP with SSL/TLS (SMTPS)
- 587: SMTP with STARTTLS (recommended)
- Check correct port number from your SMTP provider’s documentation.
- Port number must be between 1-65535.
- Find Enable STARTTLS toggle.
- If your SMTP provider requires TLS/STARTTLS, set toggle to Active position.
- If using port 587, STARTTLS should generally be active.
- If using port 465, STARTTLS is generally not needed (SSL/TLS is used directly).
- Check provider documentation to make correct setting.
Sender and Authentication
- Enter sender email address in From field.
- Format: Must be valid email address format.
- Examples:
[email protected],[email protected],[email protected] - This address will appear as sender in all sent emails.
- Ensure your DNS/SPF records support this address.
- Find Auth toggle.
- If your SMTP server requires authentication, set toggle to Active position.
- Most modern SMTP providers require authentication.
- If Auth toggle is active, Username field becomes visible.
- Enter username of your SMTP account.
- Examples:
alert.bot,smtp.user,[email protected] - In some providers, username may be full email address.
- Check correct format from your SMTP provider’s documentation.
- If Auth toggle is active, Password field becomes visible.
- Enter password of your SMTP account.
- Password will appear masked for security reasons.
- You can click eye icon to see password.
- Use of secret manager is recommended for sensitive information.
Timeout and Connection Pool Settings
- No field exists directly in UI for timeout and pool settings.
- Use Additional Properties section to make these settings (detailed in Step 7).
- Common timeout settings:
mail.smtp.connectiontimeout=30000(30 seconds)mail.smtp.timeout=60000(60 seconds)mail.smtp.writetimeout=120000(120 seconds - for large attachments)- Connection pool settings generally work with default values.
- Add to Additional Properties for special requirements.
Additional Properties and Security Settings
- Find Additional Properties section.
- Use this section to add provider-specific parameters for your SMTP provider.
- Add parameters in Key-Value format:
- Example:
mail.smtp.connectiontimeout=15000 - Example:
mail.smtp.writetimeout=120000 - Commonly used properties:
mail.smtp.connectiontimeout: Connection timeout (milliseconds)mail.smtp.timeout: General timeout (milliseconds)mail.smtp.writetimeout: Write timeout (milliseconds)mail.smtp.auth.mechanisms: Authentication mechanism- Add one key-value pair per line.
- Check supported properties from your SMTP provider’s documentation.
- Find AddressToTest field.
- Enter email address to be used for test mail sending.
- This address is where test mail will be sent when Test Connection button is clicked.
- Example:
[email protected],[email protected] - This field can be left empty, but filling it is recommended for testing.
- Find DeployToWorker toggle.
- Set toggle to Active position in high traffic scenarios.
- Deployment on worker is recommended for load distribution and performance.
- Comes active by default.
Test Connection
- Find [Test Connection] button at bottom of form or in top right corner.
- Click button.
- System tests connection parameters:
- Connection is established to SMTP server
- Authentication is performed (if Auth is active)
- STARTTLS handshake is performed (if active)
- Test mail is sent (if AddressToTest is filled)
- Test result:
- Successful: Green confirmation message is displayed, message like “Connection test successful”
- Failed: Red error message is displayed, error details are shown
- In error case:
- Read error message
- Check relevant parameters (Host, Port, Username, Password)
- Check firewall and network settings
- Check SMTP provider documentation
- Fix parameters and test again until test is successful.
Saving and Deploying
- Ensure all required fields are filled.
- Verify that test connection is successful (recommended).
- Click [Save and Deploy] button in top right corner of form.
- System saves connection and deploys to selected environment.
- After successful save:
- You are redirected to Connection list page
- New connection appears in list
- Connection becomes Enabled status
- Becomes available for use in Integration Flow and Connector steps
- Name field is unique and valid
- Host and Port fields are filled
- From address is in valid email format
- If Auth is active, Username and Password are filled
- Environment is selected
- Test Connection is successful (recommended)
- All required fields are filled
- Connection is successfully created and saved
- Becomes active in selected environment
- Connection selection can be made in Integration Flow and Connector steps
- Is displayed and can be managed in Connection list
Deleting Connection
Deletion Operation
Deletion Tips
- Use Disable option instead of deleting.
- Connection becomes passive but is not deleted.
- Can be reactivated when needed.
Exporting/Importing Connection
Export
Export
Method 1
Method 2
File Format
Date-connection-ConnectionName-export.zipExample:
13 Nov 2025-connection-Production_EmailSMTP-export.zipZIP Contents
- Connection JSON file
- Metadata information
- Dependency information (e.g., certificates, key store)
Usage Areas
- Backup
- Moving between environments (Test → Prod)
- Versioning
- Team or project-based sharing
Import
Import
Import Steps
- Click [Import Email] button on main list.
- Select downloaded ZIP file.
- System checks: Is format valid? Is there name conflict? Are dependencies present?
- Then click [Import] button.
Import Scenarios
Usage Areas of Connection
Creating and Activating Connection
- Create Connection.
- Verify connection with Test Connection.
- Save and activate with Save and Deploy.
- Ensure Connection is in Enabled status
Usage in Integration / Connector Steps
Scheduled Job Usage
Test Purpose Usage
Best Practices
Things to Do and Best Practices
Things to Do and Best Practices
SMTP Provider Management
Good: Opening separate Connection for each provider.
Best: Specifying environment + provider combination in name (Prod_SendGrid)
Sender Identity
from field with random addresses.Good: Using meaningful addresses according to business processes.
Best: Defining corporate alias compatible with DMARC/SPF records
Credential Lifecycle
Good: Rotating manually at intervals.
Best: Setting up rotation automation through secret manager
Additional Parameter Management
additionalProperties field empty.Good: Adding only needed keys.
Best: Recording all mandatory SMTP properties from provider documentation
Environment Management
Good: Creating separate connection for each environment.
Best: Managing all environments in single connection using environment option, only changing environment during inter-environment transitions
Connection Test
Good: Verifying with Test Connection before saving.
Best: Testing after each parameter change, performing full integration test in test environment before moving to production
Security Best Practices
Security Best Practices
SMTP Authentication
Role-Based Access
enable/disable permissions to teams responsible for email infrastructure; incorrect configuration can stop all notificationsAdditional Parameter Security
additionalProperties, keep values with masked secret referencesCredential Management
SSL/TLS Usage
Access Control
Things to Avoid
Things to Avoid
Single Server Dependency
Alternative: Define secondary host with
additionalProperties or separate ConnectionShared Credentials
Alternative: Open separate user account for each application, audit accesses
Wrong Sender Address
Alternative: Use approved domain aliases and keep DNS records up to date
Using Production Connection in Test Environment
Alternative: Create separate connection for each environment, use environment parameter, separate connection names by adding prefix according to environment (Test_, Prod_)
Very Low Timeout Values
Alternative: Adjust timeout values according to real usage scenarios, measure network latency and determine timeouts accordingly
Not Using Connection Pool
Alternative: Enable Connection pool, adjust pool size according to traffic volume, set up pool monitoring
Performance Tips
Performance Tips
SMTP Host Selection
Effect: Network delay decreases, timeout risk decreases
Additional Parameter Optimization
mail.smtp.connectiontimeout, mail.smtp.writetimeout values according to real load tests.Effect: Stable performance even with large attachments
Test Mail Automation
Effect: Incorrect configurations are caught before moving to production
Connection Pool Optimization
Effect: Connection opening cost decreases by 80%, response times decrease, resource usage is optimized
Timeout Values Optimization
Effect: Unnecessary waits are prevented, fast fail-over is provided, user experience improves
Connection Monitoring
Effect: Problems are detected proactively, performance bottlenecks are identified early, downtime decreases
Troubleshooting
Email Not Delivered
Email Not Delivered
DNS/SPF Check
Provider Logs
Enable STARTTLS
Test Mail Failed
Test Mail Failed
Test Address
Credential Check
Port Check
Connection Timeout
Connection Timeout
Network Check
System Health
Timeout Settings
Log Review
Authentication Failed
Authentication Failed
Credentials
User Status
Permission Check
Certificate Check
Pool Exhausted
Pool Exhausted
Pool Size
Connection Check
Idle Timeout
Metric Monitoring
Connection Test Successful But Integration Flow Gives Error
Connection Test Successful But Integration Flow Gives Error
Enable Toggle
Connection Selection
Connection Deploy
Flow/Job Deploy
Log Check
Frequently Asked Questions (FAQ)
Can I keep multiple sender addresses in Email Connection?
Can I keep multiple sender addresses in Email Connection?
from address; create separate Connection by cloning for different addresses or use application-level override.Will there be a problem if I enable TLS in provider where STARTTLS is not mandatory?
Will there be a problem if I enable TLS in provider where STARTTLS is not mandatory?
Which key/values can I add to Additional Properties field?
Which key/values can I add to Additional Properties field?
mail.smtp.connectiontimeout, mail.smtp.auth.mechanisms, etc.) are supported; key and value are free text.Does mail go to real recipients with Test Connection?
Does mail go to real recipients with Test Connection?
addressToTest field; Integration Flow is not triggered.Can I use this Connection in connector mode as well?
Can I use this Connection in connector mode as well?
connectorMode is activated from connector screen, same form is used and your saved Connection appears in list.Can I use the same connection in multiple Integration Flows?
Can I use the same connection in multiple Integration Flows?
Is using Connection pool mandatory?
Is using Connection pool mandatory?
Should I create different connections for Test and Production?
Should I create different connections for Test and Production?
Test Connection successful but not working in Integration Flow, why?
Test Connection successful but not working in Integration Flow, why?
- Connection enable toggle may be passive
- Different connection may be selected in Integration step
- Connection may not have been deployed
- Integration Flow may not have been redeployed yet

