package sendmail
Implementation of the sendmail command
Install
Dune Dependency
Authors
Maintainers
Sources
colombe-v0.2.0.tbz
sha256=12c2736f0e1a6e001a47e2b39907bc1f6ddb18718f2c341dcd10b19554706ead
sha512=09e19eff4a016f7735b35f2298f0557be38ee00b24b5bbf102b3c66c3b783ea5190e55ed2da3300fb8c05f445a832f1482fdea84ec35b78b238e771e5e377fd7
doc/sendmail.tls/Sendmail_with_tls/index.html
Module Sendmail_with_tls
Source
Source
module Make_with_tls
(Value : VALUE) :
S
with type 'x send = 'x Value.send
and type 'x recv = 'x Value.recv
and type Value.error = Value.error
and type encoder = Context_with_tls.encoder
and type decoder = Context_with_tls.decoder
Source
type error = [
| `Tls of [ `Protocol of Value.error | `Tls_alert of Tls.Packet.alert_type | `Tls_failure of Tls.Engine.failure ]
| `Protocol of [ `Protocol of Value.error | `Tls_alert of Tls.Packet.alert_type | `Tls_failure of Tls.Engine.failure ]
| `Unsupported_mechanism
| `Encryption_required
| `Weak_mechanism
| `Authentication_rejected
| `Authentication_failed
| `Authentication_required
]
Source
val sendmail :
's Colombe.Sigs.impl ->
('flow, 's) Colombe.Sigs.rdwr ->
'flow ->
Context_with_tls.t ->
Tls.Config.client ->
?authentication:authentication ->
domain:Colombe.Domain.t ->
reverse_path ->
forward_path list ->
(string * int * int, 's) stream ->
((unit, error) result, 's) Colombe.Sigs.io
sendmail impl rdwr flow ctx tls_config ?authentication ~domain sender recipients mail
where:
impl
is the scheduler (unix, lwt or async)rdwr
read/write syscallflow
witness of the flow (can be a socket)ctx
context used by the processtls_config
TLS configuration used by STARTTLSauthentication
authentication information used by the processsender
sender of the mailrecipients
recipients of the mailmail
stream of the mail
This process try to send a mail according RFC4409
. It ensures to use STARTTLS
(eg. RFC3207
) while the process according TLS configuration tls_config
. If authentication
is given, it does the authentication only while TLS flow. Mail is sended only while TLS flow.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>