public function addAttachment($attachment) {
    if (!file_exists($attachment)) {
      pines_error('Invalid attachment.');
      return false;
    }
    $this->attachments[] = $attachment;
    return true;
  }