Retrieve received email
One received email with its text, its HTML and the names of its attachments.
opensend.inbound.get(id)opensend inbound getInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
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.