diff --git a/core/components/formit/model/formit/fihooks.class.php b/core/components/formit/model/formit/fihooks.class.php index b9a80342..23b4660d 100644 --- a/core/components/formit/model/formit/fihooks.class.php +++ b/core/components/formit/model/formit/fihooks.class.php @@ -442,7 +442,7 @@ public function email(array $fields = array()) { if (empty($v['name'])) { $v['name'] = 'attachment'.$attachmentIndex; } - $this->modx->mail->mailer->AddAttachment($v['tmp_name'],$v['name'],'base64',!empty($v['type']) ? $v['type'] : 'application/octet-stream'); + $this->modx->mail->mailer->addAttachment($v['tmp_name'],$v['name'],'base64',!empty($v['type']) ? $v['type'] : 'application/octet-stream'); $attachmentIndex++; } }