← 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) | Magician (eval) |
|---|---|
| Available | Available |
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.