package email_message
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
E-mail message parser
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=3aa5c85da8530c277cf9e72e18861b235b3b872f08c87f118c04478433320ebb
Description
Published: 26 May 2024
README
"Email Message"
email_message is a library that defines types that represent an RFC2822 email.
Parsing an email
You can use Email.of_string to parse an email (e.g. from a ".eml" file).
Once you have your hands on an Email.t, you can use various functions in the Email.Simple and Email modules to inspect parts of the email. For example:
Email.Simple.subject: the subject of the emailEmail.Simple.from: the From header sender of the emailEmail.headers: all the email headersEmail.Simple.all_attachmentsthe email attachments
Constructing an email
The Email.Simple module exposes various functions for constructing an email. For example:
Email.Simple.create
~from:(Email_address.of_string "sender@example.com")
~to_:[ (Email_address.of_string "recipient@example.com") ]
~subject:"Example email"
(Email.Simple.Content.text_utf8 "This is an example email.")
Dependencies (12)
- magic-mime
-
dune
>= "3.11.0" -
cryptokit
>= "1.16" & < "1.17" -
base64
>= "3.4.0" -
angstrom
>= "0.15.0" -
re2
>= "v0.17" & < "v0.18~" -
ppx_jane
>= "v0.17" & < "v0.18~" -
core_unix
>= "v0.17" & < "v0.18~" -
core_kernel
>= "v0.17" & < "v0.18~" -
core
>= "v0.17" & < "v0.18~" -
async
>= "v0.17" & < "v0.18~" -
ocaml
>= "5.1.0"
Dev Dependencies
None
Used by (1)
-
async_smtp
>= "v0.17.0"
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page