Library
Module
Module type
Parameter
Class
Class type
Configuration providing needed information to connect to the SMTP server.
val make :
username:string ->
password:string ->
hostname:string ->
with_starttls:bool ->
t
Build a configuration record for the SMTP server
This is a helper to build a configuration.
username
username needed for the login
password
user's password for the login
hostname
hostname of the SMTP server
with_starttls
True if start unencrypted connection and then "promote"
Add a port to configuration record
This is a helper function to allow builder pattern.
Creates a new config with the provided optional port and old config. The port is used to connect the SMTP server or None for using default port
Tells letters to use the specified certificate to verify the peer.
The file may contain multiple CA certificates. The certificate(s) must be in PEM format.
Creates a new config with the provided CA cert and old config.