← All docs
mb_send_mail()
Encodes the subject and body with the active language settings and sends the message through the configured mail transport.
mb_send_mail()
function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_params = null): bool
Encodes the subject and body with the active language settings and sends the message through the configured mail transport.
Parameters:
$to(string)$subject(string)$message(string)$additional_headers(array|string), default[], optional$additional_params(?string), defaultnull, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/mb_send_mail.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mb_send_mail is implemented in the compiler, see the internals page.