Library
Module
Module type
Parameter
Class
Class type
Configuration providing needed information to connect to the SMTP server.
val create :
?mechanism:Sendmail.mechanism ->
username:string ->
password:string ->
hostname:string ->
with_starttls:bool ->
unit ->
t
Build a configuration record for the SMTP server
This is a helper to build a configuration.
username
username needed for the login, if empty string provided, SMTP will be used unauthenticated
password
user's password for the login, if empty string provided, SMTP will be used unauthenticated
hostname
hostname of the SMTP server
with_starttls
True if start unencrypted connection and then "promote"
?mechanism
login mechanism used by sendmail (default: PLAIN)
val make :
username:string ->
password:string ->
hostname:string ->
with_starttls:bool ->
t
Same as create
with default mechanism - backwards compatibility
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.