I have installed Opencart 1.5.6.4 as a fresh install. Post installation everything works like a charm, but the users aren't receiving confirmation emails on account registration, forgot password or on orders. I have tried following work around from Opencart forum, yet to be successful. If I'm using customized php auto response mail application, I'm able to send the same but not working with Opencart.

Though it shows mail sent, but not received

Hosting Details:
Vendor: Manashosting
Type: Shared Hosting - Windows
PHP Version: 5.2.17
Tried Workaround:
#1:
Choose 'Mail' in the settings
In the parameters box below enter
-fyou@youremail.com as well -Fyou@youremail.com
#2:
SMTP settings as localhost for the host. No user/password and default port 25 & email in General Tab
#3:
Go to ADMIN>Settings>Mail
Use Mail Protocol: MAIL
Mail Parameters: -Fyouremail@domain.com (note the capital F, no space in front of your email address)
SMTP Host: localhost
SMTP Username: youremail@domain.com (just your email address)
SMTP Password: use your password used to get your email with your host
SMTP Port: 25
SMTP Timeout: 5
Select YES for New Order Alert Mail
Select YES for New Account Alert
#4:
Remove second new line in system/library/mail.php on line 97, i.e. replace
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
with
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline;
#5:
1. Open the following folder in your text editor (Dreamweaver, etc): system/library/mail.php
2. Go to the following line of code: echo $header = 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
3. Comment this line of code out like this: /*echo $header = 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;*/
4. Add this line of code underneath it and save the file: $header = 'From: ' . $this->sender . ' <' . $this->from . '>' . $this->newline;
Now go to your OpenCart Admin sytem/settings/email. Set mail protocol to "mail". Enter into mail parameters field any email address you want (you do not need the -f). Now put the ACTUAL email you want to receive confirmations at in "Additional Email Alerts" box. DO NOT add -F in front of the email addreses.
#6:
f you Have the same problem you must set your shop like this:
open SYSTEM -> SETTINGS -> Mail TAB and set fields like this:
1. Protocol: MAIL
2. Parameters: LEAVE EMPTY
3. Host: LEAVE EMPTY
4. SMTP Name: Leave empty
5. password: LEAVE EMPTY
6. SMTP Port: 25
7. Connection timeout: 5
8. Notification options
- YES
- YES
9.Textarea empty
AND SAVE... only one thing you must do is type your e-mail adress to General TAB
"* E-mail: yourmail@yourmail.com "
Works Good in my shop: Contact form, notification to customers after make order.
If you can't still send e-mail using contact form open file: /system/library/mail.php
Find line 97
Code: Select all
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
REPLACE WITH
Code: Select all
$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline;
Then upload again using FTP manager.
NONE OF THESE HAVE WORKED, I NEED A PERFECT SOLUTION THAT WOULD REALLY HELP ME TO OVERCOME THIS ISSUE AT THE EARLIEST! I don't find any issue with my hosting service as everything are working fine in custom forms but not in Opencart.