Post by parkookk » Tue Apr 30, 2013 1:15 am

Try this! See if it works:

Remove second new line in system/library/mail.php on line 97, i.e. replace

Code: Select all

$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
with

Code: Select all

$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline;
Last edited by straightlight on Sat Apr 04, 2020 10:19 pm, edited 1 time in total.
Reason: Added code tags.

I am using English OpenCart 3.0.3.8, Default Template/Theme, php 7.4, Latest Brave Browser (No Ads-Blocker, etc.)


User avatar
Active Member

Posts

Joined
Thu Jan 17, 2013 11:56 pm
Location - london

Post by naken » Sun Jul 14, 2013 1:01 pm

Hello,

I am wondering if someone can help me?

I have been having a similar problem with emails not working properly. Some of our customers are emailing us and complaining that they haven't received our registration emails, and I always reply with 'have you checked your junk mail?' Recently a lot of customers not receiving the emails say that it also isn't in their junk mail! So we tried the -fmail@domain.com thing.

We tried adding the -femail@domain.com which seemed to work but we have had a problem arise as a result. We have two emails when someone signs up, if they select 'yes' to our newsletter they receive a standard registration email with a coupon code, if they select 'no' to our newsletter they receive just the standard registration email with no code. This is something to do with the coding, but for some reason only the standard registration email is sent out when either option is selected. Thus, our customers are not receiving the code which is causing problems!!

PLEASE HELP!!

Newbie

Posts

Joined
Wed Jun 20, 2012 4:04 am

Post by magisterson » Thu Aug 29, 2013 6:29 am

If anyone still have this problem here is my solution:
http://forum.opencart.com/viewtopic.php ... 34#p432734

I have 1and1 hosting and shop now works good.

New member

Posts

Joined
Tue Jul 23, 2013 10:15 pm

Post by aberathne » Sat Feb 15, 2014 2:59 am

Thanks, I also had the same problem. It resolved now. :)

Newbie

Posts

Joined
Wed Jan 09, 2013 3:49 am

Post by sogoodtaya » Mon Feb 17, 2014 6:49 am

Ok..lets all assume the lotus position, and pause for meditation. As we clear the mind, we realize there must be a solution. I have found it...relax...and follow my directions.

This worked for me as follows:

1. Open the following folder in your text editor (Dreamweaver, etc): system/library/mail.php

2. Go to the following line of code:

Code: Select all

echo $header = 'From: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
3. Comment this line of code out like this:

Code: Select all

/*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. Try and use a Gmail account...I have confirmed these work the best.

Summary: For some reason, the "Mail Parameters" field does not work in OpenCart. But you can successfully receive order and new account notifications in the "Additional Email Alerts" box. You DO NOT need to add any SMTP information (just leave it blank).

I hope this helps...it is very frustrating...I know. Take a deep breath, do what I said above, and you will have a successful solution :)))
Last edited by straightlight on Sat Apr 04, 2020 10:20 pm, edited 1 time in total.
Reason: Added code tags.

Newbie

Posts

Joined
Mon Feb 17, 2014 5:07 am

Post by w-fa » Wed Jul 01, 2015 5:27 pm

Hi,
I did all above,but none of them solved my problem.What should I do?
Is there any one to help me?

Newbie

Posts

Joined
Thu May 14, 2015 2:38 pm

Post by adiproject » Mon Jul 06, 2015 12:15 pm

i have same problem to, does anyone know wheres we have sold this issue?

User avatar
Newbie

Posts

Joined
Thu Feb 05, 2015 4:01 pm

Post by oscarlab » Fri Feb 12, 2016 4:17 am

Hi There,

I tried everything from the forum above, but my problem was still there.

First I wet to check the mail log in my CentOS server /var/log/maillog. and I found the followin log:

Code: Select all

postfix/sendmail[30318]: fatal: setrlimit: Permission denied
Then doing some research I fount that this is something related to SELinux not allowing my website to send email. So I disabled SELinux, but it didn't help. So I foud this guy Sufi Nawaz http://www.sufinawaz.com/selinux-apache-sendmail/

An I followed his steps like this:

1.Find out if your SELinux settings allow your Apache server to send email running this command:

Code: Select all

$ sestatus -b | grep -i sendmail
2. And I got this:

Code: Select all

httpd_can_sendmail off
logging_syslogd_can_sendmail off
3. Which means Appache was not allowed to send emails. Then running the following command you can switch that to "on"

Code: Select all

$ setsebool -P httpd_can_sendmail 1
Wait some seconds, and reboot. Fixed!

Newbie

Posts

Joined
Fri Feb 12, 2016 4:00 am
Who is online

Users browsing this forum: No registered users and 77 guests