Email.addAttachment(Integer attachmentId, Bool inline)
Adds an attachment to the email object.
attachmentId The database id of the attachment to include inline Set to true if you want to show the attachment inside the mail (used mostly for images)
Returns the id of the attachment relative to the email. If the inline parameter is set to true, this value can be used to inline attachments in the email body