Leaf PHP Mailer error 11-01-2023, 11:25 PM
#1
I dont recive any mails using Leaf PHP, how do you use it?
Leaf PHP Mailer error filter_list | |
<?php
$to = "recipient@example.com";
$subject = "Test Email";
$message = "This is a test email.";
$headers = "From: your_email@example.com\r\n";
$headers .= "Reply-To: your_email@example.com\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
// Use the mail() function to send the email
$mailResult = mail($to, $subject, $message, $headers);
// Check if the email was sent successfully
if ($mailResult) {
echo "Email sent successfully!";
} else {
echo "Error sending email.";
}
?>