tried this extention.. this one also not workingglommy.rm wrote:resolved using this extension
http://www.opencart.com/index.php?route ... earch=smtp
version 2.02 i am using
tried this extention.. this one also not workingglommy.rm wrote:resolved using this extension
http://www.opencart.com/index.php?route ... earch=smtp
Hello Gers,Gers wrote:Hi neeraj10786,
Have you tried the solution?
Code: Select all
$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->send();
Code: Select all
$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->send();
Gers wrote:N1kko wrote: Edit this file:
catalog/model/account/customer.php
And replace:with:Code: Select all
$mail->setSubject($this->language->get('text_new_customer')); $mail->setText($message); $mail->send();
Code: Select all
$mail->setSubject($this->language->get('text_new_customer')); $mail->setText($message); $mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setSender($this->config->get('config_name')); $mail->send();
Code: Select all
Notice: Error: E-Mail to required! in /system/library/mail.php on line 61
osexperts wrote:OK, so in the same file you edited in the previous post (customer.php)
below the line you added, add those two:Code: Select all
$mail->setFrom($this->config->get('config_email')); $mail->setSender($this->config->get('config_name'));
so it should look like:
Code: Select all
$mail->setSubject($this->language->get('text_new_customer')); $mail->setText($message); $mail->setTo($this->config->get('config_email')); $mail->setFrom($this->config->get('config_email')); $mail->setSender($this->config->get('config_name')); $mail->send(); // Send to additional alert emails if new account email is enabled
thanks! worked for me!OK, so in the same file you edited in the previous post (customer.php)
below the line you added, add those two:
CODE: SELECT ALL
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
so it should look like:
CODE: SELECT ALL
$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->send();
// Send to additional alert emails if new account email is enabled
Your Local Store.
http://www.frishops.ca
http://www.frishops.cn
Code: Select all
if (!$this->to) {
trigger_error('Error: E-Mail to required!');
exit();
}
if (!$this->from) {
trigger_error('Error: E-Mail from required!');
exit();
}
if (!$this->sender) {
trigger_error('Error: E-Mail sender required!');
exit();
}
if (!$this->subject) {
trigger_error('Error: E-Mail subject required!');
exit();
}
if ((!$this->text) && (!$this->html)) {
trigger_error('Error: E-Mail message required!');
exit();
}
if (!$this->replyto) {
$this->setReplyTo($this->sender);
}
Code: Select all
$mail->setText($this->load->view('mail/sample_template', $data));
Code: Select all
$mail->setHtml($this->load->view('mail/sample_template', $data));
For further assistance with Opencart Development you can reach me at
asktofaizan@gmail.com | https://asktofaizan.com |
Users browsing this forum: No registered users and 288 guests