Retrieve received email
One received email with its text, its HTML and the names of its attachments. A test key may not read it.
opensend inbound get <id>Flags
<id>stringRequiredThe id of the item. Up to 64 characters.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"inbound_email"Always
inbound_email.idstringThe id of the received email.
fromstringThe address it came from.
fromNamestring | nullThe name of the sender, or
nullwhen the message gave none.tostringThe address it was sent to, on one of your domains.
subjectstringThe subject line.
domainstringThe domain of yours that received it.
spambooleanWhether it was judged to be spam.
sizeintegerThe size of the whole message in bytes.
attachmentsintegerHow many files were attached.
createdAtstringWhen it arrived.
textstring | nullThe message as plain text, or
null.htmlstring | nullThe message as HTML, or
null.truncatedbooleanWhether the message was too long to keep whole.
messageIdstringThe
Message-IDheader of the message.filesobject[]The attached files. Their content is not kept.
files[].filenamestringThe name of the file.
files[].mimeTypestringThe media type of the file.
files[].sizeintegerThe size of the file in bytes.