Simple.Contentval sexp_of_t : t -> Sexplib0.Sexp.tval of_email : Email_message_kernel__.Email.t -> tval create_custom :
content_type:Mimetype.t ->
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval create :
content_type:Mimetype.t ->
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval html_utf8 :
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval html :
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval text_utf8 :
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval text :
?encoding:Octet_stream.Encoding.known ->
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
string ->
tval text_monospace_utf8 :
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
?force_no_line_wrap:bool ->
string ->
tPlain text e-mail that also includes an html version so it's displayed monospace in gmail.
By default, we add some custom styling to disable the line-wrap formatting rule which gmail uses. To disable this behavior, supply ~force_no_line_wrap:false.
Note: Content created using text_monospace_utf8 can not be used as an attachment, it is intended for use as the email body only. Please use text_utf8 instead.
val text_monospace :
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
?force_no_line_wrap:bool ->
string ->
tval alternatives :
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
t list ->
tCombine 2 or more contents as alternative versions. List should be sorted from worst to best.
Note: Content created using alternatives can not be used as an attachment. Please add multiple attachments instead.
val mixed :
?extra_headers:(Headers.Name.t * Headers.Value.t) list ->
t list ->
tCombine 2 or more contents that should be bundled together
Note: Content created using mixed can not be used as an attachment. Please add multiple attachments instead.
Add related resources (e.g. inline images). You can reference them using 'cid:${attachment_name}' in the content. To attach files you should use create ~attachments
Note: Content created using with_related can not be used as an attachment. Please add multiple attachments instead.
val content_type : t -> Mimetype.tThe Content-ID of the content
val content : t -> Octet_stream.t optioncontent and parts return None if the email doesn't properly parse. They also return None if the message has content type "message/rfc822"
Get the alternative versions available. If the message is not of content type "multipart/alternative" then return a singleton list.
Get the 'inline' parts, This expands "Content-Type: multipart/{mixed,related}", stripping out any attachment parts. multipart/alternative is not expanded
val content_disposition : t -> [ `Inline | `Attachment of string ]val attachment_name : t -> string option