Sinisterly
Leaf PHP Mailer error - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: Leaf PHP Mailer error (/Thread-Leaf-PHP-Mailer-error)



Leaf PHP Mailer error - 3cmc - 11-01-2023

I dont recive any mails using Leaf PHP, how do you use it?


RE: Leaf PHP Mailer error - JefeNoMas - 12-16-2023

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."; } ?>



RE: Leaf PHP Mailer error - rickmother - 04-06-2024

if the email is not sent by the mail() php funxtion try to configure it on the cpanel


RE: Leaf PHP Mailer error - amandafultz - 05-17-2024

Thanks for your answer. This is what I am looking for,