bxmail
bxmail(
string to,
string subject,
string message,
string additional_headers = "",
string additional_parameters = ""
);
Check if the 'custom_mail' function is available. If it exists, bxmail calls it with all parameters and returns a result.
Otherwise, calls in-built php 'mail' function.
This function is called from the main module when sending mail events as well as from the subscribe module.
Function parameters
Parameter | Description |
---|---|
to | Recipient. |
subject | E-mail subject. |
message | E-mail text. |
additional_headers | Additional headers. |
additional_parameters | Additional parameters for 'mail' php function(). |
Returned value
Result for custom_mail or mail function is returned.See Also
© «Bitrix24», 2001-2024