Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In catalog/controller/mail/order.php file,
find:
Code: Select all
$mail->setHtml($this->load->view('mail/order_add', $data));
Code: Select all
$mail->setText($this->load->view('mail/order_add', $data));
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
All I see at the end of the order process:
Your order has been placed!
Your order has been successfully processed!
You can view your order history by going to the my account page and by clicking on history.
If your purchase has an associated download, you can go to the account downloads page to view them.
Please direct any questions you have to the store owner.
Thanks for shopping with us online!
/Marcel
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I just did another test. Used the online 'Contact Us' form. Email arrived in less then 1min.
Test2: Registered as a customer
here the feedback on the screen, the email never makes it. So there must be differences between Contact Us form and registering as a customer.
One other thought: the code you had me change, a few lines above it looks a lot like smtp, but I use php mail in my settings.
Your Account Has Been Created!
Congratulations! Your new account has been successfully created!
You can now take advantage of member privileges to enhance your online shopping experience with us.
If you have ANY questions about the operation of this online shop, please e-mail the store owner.
A confirmation has been sent to the provided e-mail address. If you have not received it within the hour, please contact us.
/Marcel
1 - Put your site under maintenance.
2 - Download PHPMailer at: https://sourceforge.net/projects/phpmai ... t/download
3 - From the downloaded ZIP file, upload the _lib/class.phpmailer.php file to your Opencart's system/library/mail/PHPMailer folder (create the folder).
4 - In system/library/mail/PHPMailer/class.phpmailer.php file,
find:
Code: Select all
<?php
Code: Select all
namespace Mail;
Code: Select all
function Sign($cert_filename, $key_filename, $key_pass) {
$this->sign_cert_file = $cert_filename;
$this->sign_key_file = $key_filename;
$this->sign_key_pass = $key_pass;
}
Code: Select all
/**
*
*
* @param mixed $to
*/
function setTo($to) {
return $to;
}
/**
*
*
* @param string $from
*/
function setFrom($from) {
return $from;
}
/**
*
*
* @param string $sender
*/
function setSender($sender) {
return $sender;
}
/**
*
*
* @param string $reply_to
*/
function setReplyTo($reply_to) {
return $reply_to;
}
/**
*
*
* @param string $subject
*/
function setSubject($subject) {
return $subject;
}
/**
*
*
* @param string $text
*/
function setText($text) {
return $text;
}
/**
*
*
* @param string $html
*/
function setHtml($html) {
return $html;
}
function Log($filename) {
$this->handle = fopen(DIR_LOGS . $filename, 'a');
return $this->handle;
}
function write($message) {
fwrite($this->handle, date('Y-m-d G:i:s') . ' - ' . print_r($message, true) . "\n");
fclose($this->handle);
}
replace the entire file with:
Code: Select all
<?php
namespace Mail;
require_once(DIR_SYSTEM . 'library/mail/PHPMailer/class.phpmailer.php');
class Smtp {
public $smtp_hostname;
public $smtp_username;
public $smtp_password;
public $smtp_port = 25;
public $smtp_timeout = 5;
public function send() {
try {
$PHPMailer = new PHPMailer(true);
$PHPMailer->IsSMTP();
$PHPMailer->SMTPDebug = 2;
$PHPMailer->Host = $this->smtp_hostname;
$PHPMailer->SMTPAuth = true;
$PHPMailer->Port = $this->smtp_port;
$PHPMailer->Username = $this->smtp_username;
$PHPMailer->Password = $this->smtp_password;
$PHPMailer->CharSet = 'UTF-8';
$PHPMailer->IsHTML(true);
$PHPMailer->ContentType = 'text/html; charset=utf-8\r\n';
$PHPMailer->Mailer = 'smtp';
$PHPMailer->SetFrom($this->from, $this->sender);
if ($this->reply_to) {
$PHPMailer->AddReplyTo($this->reply_to, $this->reply_to);
}
$PHPMailer->Subject = $this->subject;
if ($this->text) {
$PHPMailer->AltBody = $this->text;
}
if ($this->html) {
$PHPMailer->MsgHTML($this->text);
}
$PHPMailer->Send();
} catch (phpmailerException $e) {
$PHPMailer->write('PHPMailer: ' . $e->errorMessage());
} catch (Exception $e) {
$PHPMailer->write($e->getMessage());
}
}
}
7 - Test your emails and check the logs in the admin to see if you notice new activities with your emails.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
send me a PM. I will take a look at this issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I did a session with an OC specialist and we could not get it going yet.
I did contact godaddy TS and we dropped a php file into the OC folder and called it and voila the email worked with that php script, which makes me believe its in the OC code. Maybe Godaddy is sensitive that everything is correct or has a bug that OC did not compensate for (but others WP, Joomla, Webtrees have) and that is why the notification email are not going through.
/Marcel
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It is an upgrade bug from OC 2.x. The event table is empty.
So follow this topic and email should be flowing
viewtopic.php?f=199&t=186236&p=681186&h ... ls#p681622
/Marcel
if you are using godaddy shared webhosting, here is a solution https://foxrig.com/opencart-support
_______________________
FOXRIG OpenCart Support
https://foxrig.com