Jump to content

An error while sending message on contact us page.


Recommended Posts

Hi friends, there is an error on contact us page while seding message. Message text is "an error occurred while sending message". PHP mail function works on my site but i can't send message on this page.

Error comes from

if (Mail::Send(intval($cookie->id_lang), ‘contact’, ‘Message from contact form’, array(’{email}’ => $from, ‘{message}’ => stripslashes($message)), $contact->email, $contact->name, $from, (intval($cookie->id_customer) ? $customer->firstname.’ ‘.$customer->lastname : $from))) $smarty->assign(‘confirmation’, 1); else $errors[] = Tools::displayError(‘an error occurred while sending message’);

lines in contact-from.php

What is the solution of this problem?

Thank you..

Link to comment
Share on other sites

  • 5 weeks later...

I tried to implement SMTP but it didn't work, too. Maybe, i used the wrong settings. But i can send test e-mail selecting php mail function and i can receive the test e-mail but i get an error on contact us page. I can't understand its reason.

Link to comment
Share on other sites

  • 4 months later...
×
×
  • Create New...