Answer the question
In order to leave comments, you need to log in
What does the "~" sign mean in 1C-Bitrix?
There is a CPosting class for mailing. It has a property EMAIL_FILTER - tobish address filter. The code says:
$arFields = Array(
"FROM_FIELD" => $email_from,
"EMAIL_FILTER" => "[email protected],[email protected]",
"SUBJECT" => $subj,
"BODY_TYPE" => ($arFields['DETAIL_TEXT_TYPE'] <> "html"? "text":"html"),
"BODY" => $message,
"DIRECT_SEND" => "Y",
"CHARSET" => $charset,
"SUBSCR_FORMAT" => $arFields['DETAIL_TEXT_TYPE'],
"GROUP_ID" =>Array(7),
"
Question: what does the ~ sign mean before addresses? It is likely that this is a logical NOT. But if you put another address, the mailing does not work. Help me figure it out, I will be very grateful))
Answer the question
In order to leave comments, you need to log in
The tilde actually means logical NOT. But in order for the filter to work, you need to list the addresses separated by a space, but this only works for two addresses, if there are more than two, you need to separate the sign &&
~mail && ~mail && ~mail
it is strange that here dev.1c-bitrix.ru/learning/course/index.php?COURSE_... is not written about this modifier
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question