WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp mail

Description

Sends an email.

Parameters

$to
(string) (required) The intended recipient(s) of the message.
Default: None
$subject
(string) (required) The subject of the message.
Default: None
$message
(string) (required) Message content.
Default: None
$headers
(string) (optional) Mail headers to send with the message (advanced)
Default: Empty

Usage

 <?php wp_mail($to$subject$message$headers ); ?> 

This page is marked as incomplete. You can help Codex by expanding it.