send
\Bitrix\Main\Entity\AddResult public static \Bitrix\Main\Mail\Event::send( array $data );
Static method sends an e-mail event. Returns object Main\Entity\AddResult.
Similar to the method CEvent::Send from the old core.
Parameters
Parameter | Description | Version |
---|---|---|
$data | Array with event parameters. |
Example
// D7 use Bitrix\Main\Mail\Event; Event::send(array( "EVENT_NAME" => "NEW_USER", "LID" => "s1", "C_FIELDS" => array( "EMAIL" => "info@stock_exchabge.com", "USER_ID" => 42 ), ));
© «Bitrix24», 2001-2024
Up