Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opencart 2.1.0.2 Not Sending Out Confirmation E-Mails #4132

Closed
AlderpenGhub opened this issue Mar 15, 2016 · 47 comments
Closed

Opencart 2.1.0.2 Not Sending Out Confirmation E-Mails #4132

AlderpenGhub opened this issue Mar 15, 2016 · 47 comments

Comments

@AlderpenGhub
Copy link

I believe this is a bug.
BACKGROUND ON ISSUE:
I am using Opencart 2.1.0.2 being hosted on a Hostgator Reseller Account and have attached a screenshot of my mail settings below for reference.
mailsettings

I have searched the forums and have not yet come up with any answer that works.

  1. I have setup the mail settings as shown in the attached screenshot and with those settings I can use the Marketing>Mail function to send e-mails to my test customers.
  2. I have also placed test orders and verified that the order is generated and an e-mail is sent to the store owner when the order is placed.
  3. I have also tested to verify that a person using the Contact Us function from the front end of the website is able to send a message to the store owner.
  4. I have also tested to verify that the store owner is notified when a person registers with the site.

THE ISSUES I AM HAVING:

  1. I am under the impression that when a new customer registers with the site a confirmation e-mail should be sent to the person registering with the site? Is this correct?
  2. I am under the impression that when a new order is placed that a customer should receive a confirmation e-mail about the order placed? Is this correct?

Assuming that I am correct and the confirmation e-mails are supposed to be sent...then the issue I am having is that those confirmation e-mails are NOT being sent (Or if they are they are never received by the test customers).

Is there a setting somewhere I am supposed to check? Is this a bug?

I have also verified that the System>Settings Page - under the Server Tab - Under the Error Handling section I have:
Display Errors=Yes, Log Errors=Yes, Error Log Filename=error.log

I have reviewed the error.log and it is empty.

Please help!

Thanks in Advance!

Sincerely,

  • George Benson

PS. - I have posted this in the OpenCart Forum - http://forum.opencart.com/viewtopic.php?f=190&t=159552 but have not had any responses.

@ynagarjuna2012
Copy link

I am facing similar issue you can check the error in the image below How to fix this ?

Since I have enabled and need Email Verification.My Customers won't be able to move forward without verification

image

@scw1937
Copy link

scw1937 commented Apr 12, 2016

I can confirm this bug. No error is logged. Email from contact page is sent correctly, while notification fails. It's a clean install with no (third party) extensions. The forums do not provide a proper solution yet.

Host: Antagonist, PHP 5.6
Version: Opencart 2.1.0.2
Mail protocol: Mail
Order mail alert: yes (other mail alerts: no)

@nik2020
Copy link

nik2020 commented May 9, 2016

Your mail parameter is wrong I guess.... Go to cpanel of your website and go to mailing accounts.
Click configure email and I shall see the parameter value and all others to be fixed !

@rockdroid
Copy link

I have the same exact problem, and i don't know what to do.

I've changed the SMTP configuration to the recommended by my server and the one recommended bye google, the both doesn't send the F*** mail notification, but i realize that if i register a user with a contact mail that is hosted in the same IP but different domain, it works... Because of this, i thought that my MX records in the DNS was bad, so i re-checked and they were fine. My final test was, send from my webmail a test-mail to another external domain (ex. google, hotmail, etc.), this test was successful, all the test-mails were received fine.

In conclussion i can say that the problem isn't the protocol, or the server, or the configuration. I think the problem is in OpenCart, but i cant figure out where. I really hope that my exp can help to others, and i really need a hand here, i need to fix it ASAP. thank you

@emersonian
Copy link

emersonian commented May 25, 2016

7d42e75 fixed this issue for me - ensure you are running the latest code.

Check line 46 of upload/catalog/model/account/customer.php in your install and ensure it says "config_mail_smtp_hostname" rather than "config_mail_smtp_host"

@rockdroid
Copy link

@emersonian
it looks like this, and doesn't work
$mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');
$mail->smtp_username = $this->config->get('config_mail_smtp_username');
can you help me? thanks

@danielkerr
Copy link
Member

@rockdroid you need to set 2fac auth on gmail and set a app passowrd and use the app password as your password. I know smtp works because i tested it not so long ago on gmail. i think godaddy maybe have a special configuration and maybe need to use some parameter setting.

@danielkerr
Copy link
Member

@scw1937 your issue is not the same. hes using smtp your using the default mail fucntion built into php. if your site is not sending out emails you shoudl contact your host as the php mail function needs to be configured in PHP!

@danielkerr
Copy link
Member

@gbensonii

PS. - I have posted this in the OpenCart Forum - http://forum.opencart.com/viewtopic.php?f=190&t=159552 but have not had any responses.

you posted on the 15th and got a response on the 15th!

@danielkerr
Copy link
Member

send my staff a support request via the oc web site. i would also like to see whats causing the issue.

@scw1937
Copy link

scw1937 commented Jun 16, 2016

@danielkerr It may be not the same method, but it can still address the same issue. As I mentioned the mail function is working with the contact form, but still no notification mail is sent. This does not indicate a host problem, right?

In the mean time, we decided to continue using other webshop software for the next months. Thank you for your answers and good luck with the project.

@danielkerr
Copy link
Member

@scw1937 maybe you have explained this wrong!

As I mentioned the mail function is working with the contact form, but still no notification mail is sent. T

so what your saying is you expect to receive a notification email as well as the buyers email when some one uses the contact us from?

notification emails only go out to store owners for receiving new orders.

@danielkerr
Copy link
Member

i can send emails and nearly every one else can send emails then maybe you should contact your host to complain the hosting is not set up properly!!!!

theres a million reasons you can not send emails, maybe your using a free host, maybe you have to set a specific port for your hosting company. maybe your host is blocking html emails!

if it works for others it means your issue with the server!

@scw1937
Copy link

scw1937 commented Jun 16, 2016

No need to be frustrated, sir. Maybe I did not explain it very well.

If a visitor uses the contact form, an email is sent to the shop owner. This works properly and it uses PHP Mail. However, when a visitor buys a product no notification (mail alert) is sent to the shop owner. This seems strange to me, because I did configure the settings to send a mail alert in that occasion.

Remember I am talking about version 2.1.0.2, which is not the most recent version anymore. I agree that, if I would be the only one facing this issue, it is caused by the environment I use.

But, once again, for now we're good and I'll look into OpenCart again in the near future. Thank you.

@munirasim
Copy link

munirasim commented Jun 16, 2016

May be you're not paying attention to admin SETTINGS.

Go to SETTINGS and under OPTION tab and set following to YES:

  • New Order Alert Mail
  • New Account Alert Mail

@scw1937
Copy link

scw1937 commented Jun 16, 2016

Thank you, but I did. New Order Alert Mail is set to yes, and the other alert mail options are set to no.

@munirasim
Copy link

Could you please share error log, if generated?

@scw1937
Copy link

scw1937 commented Jun 16, 2016

Please read my first post. There was no error logged.

I really appreciate your efforts in order to help me, but as I said we stopped developing a new webshop for now. As this seems a particularly case, there is no need for further investigation. I don't want to waste your time.

@jmasril
Copy link

jmasril commented Jul 8, 2016

I have the same problem, no email notification after new register or buying products is sent to the customer or to the admin. please help cause im using this solution.
Thank you

@jmasril
Copy link

jmasril commented Jul 8, 2016

i just has solve it. if you use gmail it dont send the emails, but, if you change to another mail, it works

@danielkerr
Copy link
Member

you have to set the app password for gmail to work!

@jmasril
Copy link

jmasril commented Jul 8, 2016

set app password, where???

On Fri, Jul 8, 2016 at 2:00 PM Daniel Kerr notifications@github.com wrote:

you have to set the app password for gmail to work!


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#4132 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ATau3qstRyrUZ1r9WNO1qnDwPX90pbonks5qTp5IgaJpZM4Hxet7
.

JML

@danielkerr
Copy link
Member

@jmasril
Copy link

jmasril commented Jul 9, 2016

Thank you Daniel, but the link is not working for me[image: pasted1]

On Sat, Jul 9, 2016 at 12:17 AM Daniel Kerr notifications@github.com
wrote:

https://security.google.com/settings/security/apppasswords?utm_source=OGB&pli=1


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#4132 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ATau3l7TEZUMz9OR9vXEJxfGweR6pu2Hks5qTy7agaJpZM4Hxet7
.

JML

@danielkerr
Copy link
Member

google it!!!

On 9 July 2016 at 20:05, jmasril notifications@github.com wrote:

Thank you Daniel, but the link is not working for me[image: pasted1]

On Sat, Jul 9, 2016 at 12:17 AM Daniel Kerr notifications@github.com
wrote:

https://security.google.com/settings/security/apppasswords?utm_source=OGB&pli=1


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4132 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe/ATau3l7TEZUMz9OR9vXEJxfGweR6pu2Hks5qTy7agaJpZM4Hxet7

.

JML


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#4132 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AE2CzIrUNNgWQZQxC8j_w4QLz2o9I65Eks5qT458gaJpZM4Hxet7
.

@acherondigital
Copy link

Might help someone - make sure in cpanel under MX Records email routing is set to "Remote Mail Exchanger" if using email at another provider rather than the server opencart is on.

@munirasim
Copy link

Good ... Your MX records must also point to external servers. For example, if you are using GMAIL as external server then MX records would be:

1 ASPMX.L.GOOGLE.COM.
5 ALT1.ASPMX.L.GOOGLE.COM.
5 ALT2.ASPMX.L.GOOGLE.COM.
10 ALT3.ASPMX.L.GOOGLE.COM.

Another issue is that most popular email servers such as gmail, yahoo and outlook etc. have implemented strict DMARC (https://dmarc.org/) policy so make sure you setup SPF and DKIM records properly so that your emails don't go to SPAM folder of your customers' inbox.

@victornewman
Copy link

I am using opencart 2.3.0.2 I am using my domain name and e-mail so there is no gmail account in my question. All settings done -finfo@xxxx.com, mail.xxx.com etc. It works because when I send mail under marketing menu to all customers they receive mails (in spam but they receive).

The problem is whenever I have nev registration or new order I do not receive confirmation e-mail. Yes under mail settings mail allerts chosen as register, order, rewievs.

I can say that problem is nor on e-mail settings with my limited programing but sharp logic;)

is there any idea except mail settings and gmail isue?
Thanks in advance

@okmela
Copy link

okmela commented Feb 25, 2017

hi i got same mail problem please help me out , its not sending email to customer.

@okmela
Copy link

okmela commented Feb 25, 2017

anyone there to help me about email on opencart?

@arnisjuraga
Copy link
Contributor

Can you access webserver log files?
system/storage/logs/error.log also?

@sfshameem5
Copy link

sfshameem5 commented Mar 15, 2017

I'm also facing this problem. No confirmation emails being sent to the admin or the customer. I'm using opencart version 2.1.0.1

@rayhan007
Copy link

rayhan007 commented Jul 1, 2017

using mail protocol I am not able to send mail through my windows server but able to send through linux cpanel server...can any one help me that how to do it by windows server for opencart....

@RaidoDev
Copy link
Contributor

RaidoDev commented Jul 3, 2017

You need a mail protocol app for windows. Are you using IIS or Apache on Windows?

@rayhan007
Copy link

rayhan007 commented Jul 3, 2017

Hi @RaidoDev I am using IIS for windows server 2008R2 and I am trying to send mail through opencart 2.02.0 version using mail protocol

@webcorvo
Copy link

webcorvo commented Jul 3, 2017

hi @rayhan007 , for send email through opencart is simple:

For a gmail account:

Protocol: SMTP
SMTP Hostname: tls://smtp.gmail.com
SMTP Username : your gmail user name
SMTP Password : your gmail pwd

@rayhan007
Copy link

rayhan007 commented Jul 3, 2017

hi @webcorvo i am getting this error http://prntscr.com/fqz7yi using smtp
I was trying to send mail through sales>order to customer....
http://www.delsyscanada.com/sites/oc2020/admin
username: admin
password: admin

Anyone can have a try to do it success for sending mail....

@webcorvo
Copy link

webcorvo commented Jul 3, 2017

@rayhan007 if you upgrade for version Version 2.3.0.2 work´s well ;o)

Version 2.3.0.2 is the one that is stable

@rayhan007
Copy link

rayhan007 commented Jul 3, 2017

@webcorvo I tried for 2.3.0.2 no results...can u give me a proof is it really works for opencart SMTP service?

@webcorvo
Copy link

webcorvo commented Jul 3, 2017

yes, i use that one!
install that version and i will show you :o)
Make a order with your email

@rayhan007
Copy link

rayhan007 commented Jul 3, 2017

http://www.delsyscanada.com/sites/oc2302/admin
user: admin
password: admin
Please show me

@webcorvo
Copy link

webcorvo commented Jul 3, 2017

the problem is in your server provider :o(

@rayhan007
Copy link

my server is ok....i tried more than 2 server....

@rayhan007
Copy link

@webcorvo can u show me ur one from where it is working...it's hard to believe for me that it is working for u

@rayhan007
Copy link

@webcorvo sent to u

@RaidoDev
Copy link
Contributor

RaidoDev commented Jul 3, 2017

Sometimes, the mail settings can help. In Store settings under "Mail" set:

"from" your store address:

Mail Parameters: -fshop@example.com
or with a space:
Mail Parameters: -f shop@example.com (notice space after "-f" parameter).

@kashifmoin
Copy link

I have the same issue bro.. my customers are not receiving any emails and neither me as a admin any email is coming if any order is there..
http://silkcouturedubai.com

can u brothers have a look to my site and help me in this to solve this problem

I have already configured MAIl.
and also sent new order and review order new accoutn to YES..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests