Skip to content

Commit

Permalink
BUG when sending the e-mail to admin
Browse files Browse the repository at this point in the history
error when sending the e-mail to admin if to register the client
  • Loading branch information
opencart-russia committed Apr 9, 2015
1 parent 28f02ee commit 7974e46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upload/catalog/model/account/customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public function addCustomer($data) {
$mail->smtp_port = $this->config->get('config_mail_smtp_port');
$mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');

$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender(html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'));
$mail->setSubject(html_entity_decode($this->language->get('text_new_customer'), ENT_QUOTES, 'UTF-8'));
$mail->setText($message);
$mail->send();
Expand Down Expand Up @@ -178,4 +181,4 @@ public function getLoginAttempts($email) {
public function deleteLoginAttempts($email) {
$this->db->query("DELETE FROM `" . DB_PREFIX . "customer_login` WHERE email = '" . $this->db->escape(utf8_strtolower($email)) . "'");
}
}
}

1 comment on commit 7974e46

@shabirbhat
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi I am facing issue : when client try to checkout in opencart version 2.1.1 he gets an fatal error..
cal a member function trigger() on a non object in catalog/ model /account/customer.php on line 4

please help

Please sign in to comment.