A
A
ajky2017-09-14 15:29:46
1C-Bitrix
ajky, 2017-09-14 15:29:46

How to attach an attachment to an email in D7 Bitrix?

There was an opportunity in CEvent, here they say that everything is the same, but I could not find it in the manuals and by experience

use Bitrix\Main\Mail\Event;
Event::send(array(
  "EVENT_NAME" => "FORM_OFFER",
  "LID" => "s1", 
  "C_FIELDS" => array(
    "POLE" => "ZNACHENIE"
  )
))

https://dev.1c-bitrix.ru/api_d7/bitrix/main/mail/e...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Filippenko, 2017-09-14
@ajky

https://yadi.sk/i/a59pfaGq3MtEJi
judging by this, it is necessary to transfer the id of the file in the system to the FILE key, or the id array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question