Jump to content

arcano

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

Recent Profile Visitors

1,600,952 profile views

arcano's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, I have a problem with my PS v 1.6.0.14 When a user (not logged in) goes to Contact page the first time and tries to send a message to customer service, receives an error "An error ocurred while sending the message". The message is correctly sent to Customer Service but not to the user. If he clicks again at send, receives "Your message has been correctly sent to our team". The message is sent to the user but not to Customer Service. From that moment, sometimes works ok and sometimes not (I haven't figured out the pattern). I've seen that first time,in ContactController.php, it pass through if (empty($contact->email)) Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $file_attachment); else { if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', $var_list, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), $file_attachment) || !Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, $contact->email, $contact->name, $file_attachment)) $this->errors[] = Tools::displayError('An error occurred while sending the message.'); } And the second Mail::Send fails, giving the error. The following times, it seems that $contact->email is empty and doesn't try to send the message to the user. Could anybody explain me the logic of this behaviour and put some light on this error? Thanks
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More