Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Leaf PHP Mailer error filter_list
Author
Message
RE: Leaf PHP Mailer error #2
Have you tried this?

Code:
<?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.";
}
?>
(This post was last modified: 12-16-2023, 10:54 PM by JefeNoMas.)

Reply





Messages In This Thread
Leaf PHP Mailer error - by 3cmc - 11-01-2023, 11:25 PM
RE: Leaf PHP Mailer error - by JefeNoMas - 12-16-2023, 10:54 PM
RE: Leaf PHP Mailer error - by rickmother - 04-06-2024, 08:15 AM
RE: Leaf PHP Mailer error - by amandafultz - 05-17-2024, 05:48 AM



Users browsing this thread: 1 Guest(s)