Answer the question
In order to leave comments, you need to log in
How to attach a file in a Bitrix email?
$arFile=CFile::MakeFileArray($_SERVER['DOCUMENT_ROOT'].'/upload/declaration-pdf');
$fid = CFile::SaveFile($arFile, "");
CEvent::Send("APPLICATION_SUBMISSION_2", "s1", $arEventFields,array(CFile::GetPath($fid)));
CEvent::Send("APPLICATION_SUBMISSION_2", "s1", $arEventFields,array(($fid));
Answer the question
In order to leave comments, you need to log in
I'm trying to attach a file this way in the CEvent::Send method, but the email arrives without a file
, what's wrong?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question