Connect via SMTP

This transfer protocol is the most commonly used to send Emails. Doppler Relay offers the possibility to connect via SMTP with different languages.

How to send Emails via SMTP using Ruby, Python or PHP

The following code examples listed below favor environment variables over hard-coding credentials. Please, be sure you know how to set these in your chosen language. You will find them referenced as ‘DOPPLERRELAY_USERNAME and ‘DOPPLERRELAY_PASSWORD’.

Always use environment variables for sensitive data, such as usernames and passwords, to keep this data only on the machines that really need it.