Documentation

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

1
ParameterDescription
to Recipient.
subject E-mail subject.
messageE-mail text.
additional_headersAdditional headers.
additional_parametersAdditional parameters for 'mail' php function().

Returned value

Result for custom_mail or mail function is returned.

See Also

  • mail



  • © «Bitrix24», 2001-2024