Answer the question
In order to leave comments, you need to log in
Write name to marketing email list?
There is an email marketing module, in which you can add a user and email him for mailing.
https://yadi.sk/i/zNH6CqwK7fjbcA
How to set a name via API?
$EMAIL = '[email protected]';
$NAME = 'Имя';
$aParams = array(
'EMAIL' => $EMAIL,
'NAME' => $NAME,
'SUBSCRIBE_LIST' => array(1)
);
\Bitrix\Sender\Subscription::subscribe($aParams);
Answer the question
In order to leave comments, you need to log in
Only one thing was missing: the desire to solve the problem!
Have you tried looking at the method Subscription::subscribe
? I think if they tried, they would see that only EMAIL is accepted as an identifier, and then a contact is searched for or created through the ContactTable class in which you can just specify a name (after adding a subscription).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question