Jump to content

send to friend/contact form - generate an error


Recommended Posts

Warning: mail() [function.mail]: Bad parameters to mail() function, mail not sent. in /var/html/prestashop/tools/swift/Swift/Plugin/MailSend.php on line 161

MailSend.php from line 153 to 169:

public function doMail($to, $subject, $message, $headers, $params)
{
$original_from = @ini_get("sendmail_from");
@ini_set("sendmail_from", $this->returnPath);

$headers = $headers->build();
if (!ini_get("safe_mode")) $success = mail($to, $subject, $message, $headers, $params);
/*line 161*/else $success = mail($to, $subject, $message, $headers);

if (!$success)
{
@ini_set("sendmail_from", $original_from);
throw new Swift_Connection_Exception("Sending failed using mail() as PHP's default mail() function returned boolean FALSE.");
}
@ini_set("sendmail_from", $original_from);
}



I don't know, where is the problem.
Can you help me, please?

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...

I have a same problem. I cannot send an email through 'Send to a Friend' feature.

But I found one thing....

When I tired to send an email from my top page item, I can send it successfully.

However, when I tried sending a email from an item within a category, I cannot send an email.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...