How can PHP be used to send emails with specific content?

To send emails with specific content using PHP, you can use the `mail()` function to send emails programmatically. You can specify the recipient, subject, message content, and additional headers within the function parameters. Make sure to properly format the email content using HTML if needed.

$to = "recipient@example.com";
$subject = "Subject of the email";
$message = "<html><body><h1>Hello, this is the content of the email!</h1></body></html>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

mail($to, $subject, $message, $headers);