I've tried to email myself with a form using Pear Mail and it did not work ... I get a "sendmail [/usr/sbin/sendmail] not executable"
Here's my code:
$recipients = 'email@example.com';
$headers['From'] = ''firstname.lastname@example.org';
$headers['To'] = ''email@example.com';
$headers['Subject'] = 'Test';
$body = "blah blah blah";
$params['sendmail_path'] = '/usr/sbin/sendmail';
// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory('sendmail', $params);
$mail_object->send($recipients, $headers, $body);
I would like to get this email form working with PEAR rather than with the default PHP mail function.