Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_mail()

3 tags 1 category

wp_mail() — Sends an email, similar to PHP’s mail function. A true return value does not automatically mean that the user received the email successfully. It just only means that the method used was able to process the request without any errors. The default content type is text/plain which does not allow using HTML. However, you can set the content type of the email by using the {

Inputs: $to (string|string[]): Array or comma-separated list of email addresses to send message. $subject (string): Email subject. $message (string): Message contents. $headers (string|string[]): Optional. Additional headers. $attachments (string|string[]): Optional. Paths to files to attach.

Returns bool: Whether the email was sent successfully.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…