I'll start debugging then...
Edit file hook_bonusforums.php.
On this line the e-mail is sent:
- Code: Select all
$ret = mail($to, $subject, $message, $headers, $additional_parameters);
The mailer returns false, so there must be something wrong there.
Stripping the $headers and $additional_parameters from the mail statement does the trick. But why?
Leaving the $additional_parameters in the statement send an e-mail, so the $headers variable is the cause. Let's see what data I have in my $headers variable.
When I echo the $headers variable I see this
- Code: Select all
From: lastname_value_of_form <email_value_of_form>
Reply-to: email_value_of_form
Return-path: <email_value_of_form>
Bcc:
When I clear the $headers variable, the mail sends...
What is wrong with my $headers?