@mxraven/mail - v0.6.0
    Preparing search index...

    Type Alias MediaType

    MediaType:
        | "text/plain"
        | "text/html"
        | "text/css"
        | "text/csv"
        | "text/markdown"
        | "text/calendar"
        | "text/vcard"
        | "application/json"
        | "application/xml"
        | "application/pdf"
        | "application/zip"
        | "application/gzip"
        | "application/x-tar"
        | "application/octet-stream"
        | "application/msword"
        | "application/vnd.ms-excel"
        | "application/vnd.ms-powerpoint"
        | "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
        | "application/vnd.openxmlformats-officedocument.presentationml.presentation"
        | "application/vnd.oasis.opendocument.text"
        | "application/vnd.oasis.opendocument.spreadsheet"
        | "image/png"
        | "image/jpeg"
        | "image/gif"
        | "image/webp"
        | "image/bmp"
        | "image/svg+xml"
        | "image/x-icon"
        | "audio/mpeg"
        | "audio/wav"
        | "audio/ogg"
        | "video/mp4"
        | "video/webm"
        | "message/rfc822"
        | string & Record<never, never>

    A MIME media type.

    The listed literals provide editor completion for common types, but every other type/subtype value is accepted as well: the IANA registry is open, and vendor or experimental types such as application/vnd.* and application/x-* are valid. The value is used verbatim in the part's Content-Type header.

    const attachment = {
    filename: "q3.pdf",
    contentType: "application/pdf",
    data: pdfBytes,
    };