# Email and Email Attachments

Inaportallows you to add emails and email attachments. if you are working with emails from GoldMine or ACT, you may want to have a look at the various mime_XXX() functions, which provide methods to parse a MIME encoded email and extract the subject, body, to/from/ccc fields. See:

- mime_parse(),
- mime_subject(), mime_body(), mime_to(), mime_from(), mime_cc(), mime_bcc(), mime_ishtml()

### Default fields

Field Name | Description
--- | ---
subject | Subject line of the email
description | Body of the email - may be HTML formatted
directioncode | Specifies whether the email has been sent or received: true - email sent false - email received
statuscode | Set the state of the email to open, canceled or closed: open: "Draft", "Failed" canceled: "Canceled" closed: "Sent", "Received", "Completed"
regardingobjectid | Lookup: normally the parent contact that owns the email
to, from, cc, bcc | Party List: list of GUID id's pointing to Account, Contact, Lead, Queue, or User NOTE: The values in to and from will normally depend on the direction code: Sent: from is system user, to is a set of contacts Received: from is a set of contacts, to is a system user.