Actions32
- Campaign Actions
- List Actions
- Media Actions
- Setting Actions
- Subscriber Actions
- Template Actions
- Transaction Actions
Setting → Test Smtp Settings
AI-generatedOverview
The node provides functionality to test SMTP settings by accepting a JSON object representing the SMTP configuration. This is useful for verifying that the provided SMTP server details (such as host, port, authentication, and security options) are correct and functional before using them in email sending workflows. Practical scenarios include validating new SMTP credentials or troubleshooting email delivery issues by confirming connectivity and authentication with the SMTP server.
Properties
| Name | Meaning |
|---|---|
| Settings (JSON) | A JSON object containing the SMTP configuration to test. It includes fields such as host, port, username, password, TLS settings, email headers, and other SMTP-related parameters. |
The JSON structure typically contains:
uuid: Identifier string.enabled: Boolean to enable/disable the setting.host: SMTP server hostname.hello_hostname: Hostname used in the SMTP HELO/EHLO command.port: Port number of the SMTP server.auth_protocol: Authentication protocol used.username: Username for SMTP authentication.password: Password for SMTP authentication.email_headers: Array of custom email headers.max_conns: Maximum simultaneous connections.max_msg_retries: Number of message retry attempts.idle_timeout,wait_timeout: Timeout settings.tls_type: Type of TLS to use.tls_skip_verify: Whether to skip TLS certificate verification.strEmailHeaders: String representation of email headers.email: Email address associated with the SMTP settings.
Output
The node outputs JSON data indicating the result of the SMTP settings test. This typically includes success or failure status and may contain error messages if the connection or authentication fails. The output does not include binary data.
Dependencies
- Requires an SMTP server accessible with the provided settings.
- Needs appropriate API credentials configured in n8n to authenticate with the SMTP server if required.
- No additional external services beyond the SMTP server itself.
Troubleshooting
Common Issues:
- Incorrect host or port leading to connection failures.
- Invalid username or password causing authentication errors.
- TLS misconfiguration resulting in handshake failures.
- Network/firewall restrictions blocking SMTP traffic.
Error Messages:
- Connection timeout or refused: Check SMTP host and port, ensure network access.
- Authentication failed: Verify username and password.
- TLS errors: Confirm TLS settings and whether to skip certificate verification.
Resolving these usually involves verifying the SMTP server details, credentials, and network accessibility.