Documentation

bxmail

bxmail(
string to,
string subject,
string message,
string additional_haders = "",
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, in-built php 'mail' function is called. 

This function is called from the main module when sending mail events as well as from the subscription module issues.

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-2022
    Up