In addition to sending emails via API, Hyvor Relay also supports sending emails using the SMTP protocol.
Pros of using SMTP:
Cons of using SMTP:
First, make sure to set up a project and generate an API key with the sends.send scope enabled.
Then, use the following SMTP configuration:
mx.mail.hyvor-relay.com587 (recommended) or 25relay (any username will work)TLS recommended if supported by your SMTP clientBelow we have provided some internal details on how Hyvor Relay's SMTP integration works.
Hyvor Relay's SMTP server, which listens on port 587 (or port 25), simply acts as an interface that converts your email to an API request and forwards it to the Hyvor Relay email sending API.
In other words, when you send an email via SMTP, you are still ultimately using the API indirectly.
The SMTP server parses the incoming MIME email and maps its components to the corresponding API request fields as follows:
From header (top-level)fromTo, Cc, Bcc headers (top-level)to, cc, bccSubject header (top-level)subjecttext/plain parttexttext/html parthtmlheadersContent-Disposition: attachment headerattachments