S
S
sorry_i_noob2019-09-20 12:19:06
1C-Bitrix
sorry_i_noob, 2019-09-20 12:19:06

Where in Bitrix can I see the values ​​of the fields that can be set, for example, for a mail template?

When editing a mail template, you can specify the following fields:
5d84994de4be0278654635.png
Where can I see their values?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2019-09-20
@gangstarcj

These are variables. And what will be transmitted in them will be.
Send yourself an email and see

H
heavenst, 2019-09-20
@heavenst

The data gets into the mail template from the CEvent::Send or CEvent::SendImmediate method. For example:

$arMailData = array(
    "NAME" => $arFields["NAME"],
    "LOGIN" => $arFields["LOGIN"],
    "PASSWORD" => $arFields["PASSWORD"]
);
CEvent::Send("NEW_PARTNER", "s1", $arMailData, "Y", false, false, "ru");

The third argument is a data set, respectively #NAME#, #LOGIN# and #PASSWORD# will be available in the email template on the "NEW_PARTNER" event.
If you need to find out how the data set for a letter is formed, you need to find the CEvent::Send call for the corresponding mail event. Dispatch methods are usually called within components or module classes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question