public function addAttachment($attachmentPath, $attachmentName = null)
{
if (isset($this->files['attachment'])) {
$attachment = ['filePath' => $attachmentPath, 'remoteName' => $attachmentName];
array_push($this->files['attachment'], $attachment);
} else {
$this->files['attachment'] = [['filePath' => $attachmentPath, 'remoteName' => $attachmentName]];
}
return true;
}