Hi,
I'm new to OpenCart, and I have searched through the forums to try to solve this today.
I'm not getting the alert emails when sales are completed. The address is on my own domain, and I know it works. I have tried every conceivable way of entering my configuration into the mail settings control panel in OC. The contact form works fine, but the alerts are not.
I am certain that PHP Mail is enabled on my server, and I have the right path to sendmail.
Help?
Thanks,
Dan
I'm new to OpenCart, and I have searched through the forums to try to solve this today.
I'm not getting the alert emails when sales are completed. The address is on my own domain, and I know it works. I have tried every conceivable way of entering my configuration into the mail settings control panel in OC. The contact form works fine, but the alerts are not.
I am certain that PHP Mail is enabled on my server, and I have the right path to sendmail.
Help?
Thanks,
Dan
if contact works then it obviously has nothing to do with your rights.
It can be due to other factors. I've seen this sort of thing when the store name was too long
Like:
Justin's Hack n Shack Pool Party & Friends of Friends
An email subject is limited to 72 based on email rules, but the mailer doesn't prevent this and causes it to not send if it is over limit.
It could also be due to certain formatting that your webhost might not approve of or encoding based on apostrophe's in the store name.
It can be due to other factors. I've seen this sort of thing when the store name was too long
Like:
Justin's Hack n Shack Pool Party & Friends of Friends
An email subject is limited to 72 based on email rules, but the mailer doesn't prevent this and causes it to not send if it is over limit.
It could also be due to certain formatting that your webhost might not approve of or encoding based on apostrophe's in the store name.
I have the same issue, any help appreciated by me to help myself and the OP.
I have 1.4.8
I CAN get emails from the contact page to the email setup in system/settings/general
The customer GETS emails once purchasing an item (just tests so far) with the invoice.
However,
I am NOT getting the emails notifying me of a purchase or order.
This is very odd, but may be a simple fix for you gurus, I am only 4 days deep into OC and LOVE it so far. I have Qphoria's Options Plus mod working and it is doing the trick for my options. Just need to get this squared away and I think* I am 100% working. (Qphoria, you are the man for that mod, it has saved me countless hours and I am sure will save more in the future)
Here is an idea of what I have setup. In system/settings/mail, I have tried various setups.
Currently I have:
*myemail is really my actual gmail address
Mail Protocol: Mail
Mail Parameters: (have tried with and without anything), currently set at -fmyemail@gmail.com
SMTP Host: smtp.gmail.com
SMTP Username: myemail@gmail.com
SMTP Password: my password of course
SMTP Port: 465 (have tried 25 as well)
SMTP Timeout: 5
Alert Mail: Yes
Additional Alert Emails: I have another email address setup here which is not getting the order confirmations either (yet this address which is the address I have setup in system/settings/general is receiving the contact messages just fine from the form)
Any help?
*Also, when looking at the email the customer gets, the from address is the address from the system/settings/general versus the Gmail address. Not sure if it matters, but I wanted to mention it.
*I also tried this test script I found online, and I did get the email. It looked like this, you make a file called test.php, put it on server, and then go to that page and that makes the server send the email to see if PHP mail is on/off.
Also, no issues with the above mentioned Qphoria, my store name is only 6 letters long, no spaces even, and no apostrophe's.
Granted I do not know the in's and out's of OC, but it seems as if there were a script that has the email address programmed in it specifically when an order is created, either the email is missing, wrong, etc. Not even sure where to start looking lol But it seems logical atleast since the other stuff works?
I have 1.4.8
I CAN get emails from the contact page to the email setup in system/settings/general
The customer GETS emails once purchasing an item (just tests so far) with the invoice.
However,
I am NOT getting the emails notifying me of a purchase or order.
This is very odd, but may be a simple fix for you gurus, I am only 4 days deep into OC and LOVE it so far. I have Qphoria's Options Plus mod working and it is doing the trick for my options. Just need to get this squared away and I think* I am 100% working. (Qphoria, you are the man for that mod, it has saved me countless hours and I am sure will save more in the future)
Here is an idea of what I have setup. In system/settings/mail, I have tried various setups.
Currently I have:
*myemail is really my actual gmail address
Mail Protocol: Mail
Mail Parameters: (have tried with and without anything), currently set at -fmyemail@gmail.com
SMTP Host: smtp.gmail.com
SMTP Username: myemail@gmail.com
SMTP Password: my password of course
SMTP Port: 465 (have tried 25 as well)
SMTP Timeout: 5
Alert Mail: Yes
Additional Alert Emails: I have another email address setup here which is not getting the order confirmations either (yet this address which is the address I have setup in system/settings/general is receiving the contact messages just fine from the form)
Any help?
*Also, when looking at the email the customer gets, the from address is the address from the system/settings/general versus the Gmail address. Not sure if it matters, but I wanted to mention it.
*I also tried this test script I found online, and I did get the email. It looked like this, you make a file called test.php, put it on server, and then go to that page and that makes the server send the email to see if PHP mail is on/off.
Code: Select all
<?
$to = 'myemail@yahoo.com';
$subject = 'The test for php mail function';
$message = 'Hello';
$headers = 'From: myemailsetupforOC@gmail.com' . "\r\n" .
'Reply-To: myemail@yahoo.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Granted I do not know the in's and out's of OC, but it seems as if there were a script that has the email address programmed in it specifically when an order is created, either the email is missing, wrong, etc. Not even sure where to start looking lol But it seems logical atleast since the other stuff works?
The issue lies withing the fact that you use a GMAIL account instead of an e-mail address that belongs to your domain.
GMAIL prevents relaying from domains and therefor it will never work.
GMAIL prevents relaying from domains and therefor it will never work.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
^^Good to know. I am going to now try it with an email address based off of my domain name. Only hassle is I have my domain reg'd with one company, hosting with another.
Just pointed nameservers, a, and mx record over to the hosting company right now so I can try it in the morning. For the start I just had the registrar forward requests to a particular folder where I had my OC installed.
Just pointed nameservers, a, and mx record over to the hosting company right now so I can try it in the morning. For the start I just had the registrar forward requests to a particular folder where I had my OC installed.
Well thats not true. I use a gmail account using the "Mail" option with no problem. Gmail just requires an SSL option to use their SMTP. When using the "Mail" option it comes down to your host and whether they allow non-authenticated emails. In the case where contact form works but alert emails do not, it is usually a content thing.i2Paq wrote:The issue lies withing the fact that you use a GMAIL account instead of an e-mail address that belongs to your domain.
GMAIL prevents relaying from domains and therefor it will never work.
I think I know what the problem is though...
The admin email adds the order total to the subject line to quickly see how much the order was for (was a great help for me). When using $ its no biggie, but perhaps other currencies aren't encoding correctly.
Try this:
1. EDIT: catalog/model/checkout/order.php
2. FIND:
Code: Select all
$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id . ' (' . $order_total . ')');
Code: Select all
$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
Your could be right, it also could be that his hoster is preventing it.Qphoria wrote:Well thats not true. I use a gmail account using the "Mail" option with no problem. Gmail just requires an SSL option to use their SMTP. When using the "Mail" option it comes down to your host and whether they allow non-authenticated emails. In the case where contact form works but alert emails do not, it is usually a content thing.i2Paq wrote:The issue lies withing the fact that you use a GMAIL account instead of an e-mail address that belongs to your domain.
GMAIL prevents relaying from domains and therefor it will never work.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
^Tried the above, and also set permissions to match what it was prior, but no change. Still not getting the order emails. Could it be something simple with my mail settings as to why that didn't work though..posssibly, so mine as well ask what is proper.
I have this info from my webhost (not the same company as co I reg'd domain with, but I pointed my two NS' to my host last night and email seems to be working with the account I created back and forth this morning just fine.
Should I be using SMTP or Mail for mail protocol with this? And should I use the normal or SSL servers? (I do not have an SSL cert on the site currently if it matters)
Mail Server Username: user+mydomain.com
Incoming Mail Server: mail.mydomain.com
Incoming Mail Server: (SSL) server1r.jiffynet.net
Outgoing Mail Server: mail.mydomain.com (server requires authentication) port 587
Outgoing Mail Server: (SSL) server1r.jiffynet.net (server requires authentication) port 465
*I was using the normal non SSL mail servers with SMTP selected as the protocol. I just chose Mail, same issue though, I still get the customer invoice to the email setup in checkout, and also contact form still works. I am staying calm before I start to pull hair out haha
What I don't get, is if the customer invoice emails as well as contact forms are dispatched from the email address I have listed which is not the one whom outgoing settings I have entered, why does it not just dispatch the order emails to me too? UGH!
*I JUST STARTED GETTING THE EMAILS AFTER A CHANGE!
I am a noob here, but I will try to explain best I can.
I was using an @yahoo.com email for my system/settings/general.
The SMTP server I was using was the one of my hosts.
Well, I was up till 5am last night trying to figure this out, but this morning with a fresh sleep, I went thinking. I know for a fact that when you use a yahoo email, and try to send an email to yourself, it DOES NOT WORK. It deny's it, and generally only saves in the outbox and will never show up in the inbox. I am not sure if this is a rule you can change? But anyways. I changed the email in system/settings/general to my gmail.com account. I have a FWD setup in Gmail to send any messages over to my Yahoo account. (also have the yahoo address setup as a 2nd email in OC so I actually got 2 emails for this test order) I processed a test order, it went to gmail, got fwd to yahoo, and presto, working!
Thank you all for the help, looks like it was something silly. I was like, how does 2/3 of it work? lol Hopefully this helps the OP.
I have this info from my webhost (not the same company as co I reg'd domain with, but I pointed my two NS' to my host last night and email seems to be working with the account I created back and forth this morning just fine.
Should I be using SMTP or Mail for mail protocol with this? And should I use the normal or SSL servers? (I do not have an SSL cert on the site currently if it matters)
Mail Server Username: user+mydomain.com
Incoming Mail Server: mail.mydomain.com
Incoming Mail Server: (SSL) server1r.jiffynet.net
Outgoing Mail Server: mail.mydomain.com (server requires authentication) port 587
Outgoing Mail Server: (SSL) server1r.jiffynet.net (server requires authentication) port 465
*I was using the normal non SSL mail servers with SMTP selected as the protocol. I just chose Mail, same issue though, I still get the customer invoice to the email setup in checkout, and also contact form still works. I am staying calm before I start to pull hair out haha
What I don't get, is if the customer invoice emails as well as contact forms are dispatched from the email address I have listed which is not the one whom outgoing settings I have entered, why does it not just dispatch the order emails to me too? UGH!
*I JUST STARTED GETTING THE EMAILS AFTER A CHANGE!
I am a noob here, but I will try to explain best I can.
I was using an @yahoo.com email for my system/settings/general.
The SMTP server I was using was the one of my hosts.
Well, I was up till 5am last night trying to figure this out, but this morning with a fresh sleep, I went thinking. I know for a fact that when you use a yahoo email, and try to send an email to yourself, it DOES NOT WORK. It deny's it, and generally only saves in the outbox and will never show up in the inbox. I am not sure if this is a rule you can change? But anyways. I changed the email in system/settings/general to my gmail.com account. I have a FWD setup in Gmail to send any messages over to my Yahoo account. (also have the yahoo address setup as a 2nd email in OC so I actually got 2 emails for this test order) I processed a test order, it went to gmail, got fwd to yahoo, and presto, working!
Thank you all for the help, looks like it was something silly. I was like, how does 2/3 of it work? lol Hopefully this helps the OP.
Qphoria wrote:Well thats not true. I use a gmail account using the "Mail" option with no problem. Gmail just requires an SSL option to use their SMTP. When using the "Mail" option it comes down to your host and whether they allow non-authenticated emails. In the case where contact form works but alert emails do not, it is usually a content thing.i2Paq wrote:The issue lies withing the fact that you use a GMAIL account instead of an e-mail address that belongs to your domain.
GMAIL prevents relaying from domains and therefor it will never work.
I think I know what the problem is though...
The admin email adds the order total to the subject line to quickly see how much the order was for (was a great help for me). When using $ its no biggie, but perhaps other currencies aren't encoding correctly.
Try this:
1. EDIT: catalog/model/checkout/order.php
2. FIND:3. REPLACE WITH:Code: Select all
$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id . ' (' . $order_total . ')');
and see if that fixes it.Code: Select all
$subject = sprintf($language->get('text_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
Qphoria, thanks for the thought, but when I checked order.php, the line already matched what your replacement.
Just to clarify, I am using an e-mail account that is with the same host as my domain and my website. I am not using Gmail or Yahoo. My website url is http://www.llcomputersanddesign.com, my OpenCart is available at shop.llcomputersanddesign.com. I just installed it yesterday.
Also, to clarify, even though my contact form works fine, I am not receiving either alert e-mails, or notification e-mails to myself when I make a purchase as a customer. The site is full of the standard dummy products right now, and I am not actually fulfilling any orders. If you want to try it, just select payment by check or money order and I'll ignore it.
Thanks again,
-Dan
I find it strange the when ordering from a webstore you get an e-mail where the from address is gmail or yahoo, but I'll guess thats just me.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
I see your transaction in the dashboard. However, I didn't see any e-mail go out.gasper wrote:Did a test transaction for you to see if it went through from a different source.^
p.s. That'll be $152.00 please!

LOL^ I am curious if you try a different outgoing server setting if it will work. Test duplicate settings in outlook or another mail client then test. Also worth a try is the script I had posted earlier, take you 2 minutes to make it and test it out and see if you get an email. Supposedly it is a surefire way to test if PHP Mail is enabled/allowed on your host.
I was able to create the same e-mail account in Thunderbird using pop3 settings, no secure authentication, no connection security, and it worked fine. I was able to send and receive from that address in Thunderbird successfully within five minutes.
If we assume for a moment that for some reason php mail is not enabled, how can I make this work? If I can't, then I'm not sure I can use this cart, which would be a shame, because I like it so much for so many other reasons.
Thanks
-Dan
If we assume for a moment that for some reason php mail is not enabled, how can I make this work? If I can't, then I'm not sure I can use this cart, which would be a shame, because I like it so much for so many other reasons.
Thanks
-Dan
gasper,
I tried the php email test you posted. I tried it first with permissions set to 777 and I got a 500 Internal Server Error. Then I tried 755, and got a blank white screen, which made me think it ran, but I didn't get any e-mails.
Do you think there might be a permissions error in OC? If so, what? I set all the required permissions to 755 when I did the install. The only error I had on install was Magic Quotes was off. I finished the install anyway without any problems.
Qphoria, do you have any other input?
-Dan
I tried the php email test you posted. I tried it first with permissions set to 777 and I got a 500 Internal Server Error. Then I tried 755, and got a blank white screen, which made me think it ran, but I didn't get any e-mails.
Do you think there might be a permissions error in OC? If so, what? I set all the required permissions to 755 when I did the install. The only error I had on install was Magic Quotes was off. I finished the install anyway without any problems.
Qphoria, do you have any other input?
-Dan
Can anybody else offer any help on this? I still am not getting the alert emails, either as buyer or seller. I know my address works for both sending and receiving. The PHP Mail test code above did not work. The FAQ on my host provides the path for sendmail, which I confirmed in the store code. Thunderbird did not require any secure authentication or connection security (STARTTLS, or SSL/TLS). I did an e-mail trace on my host that confirmed the delivery path for my account is correct. I reviewed my error logs in the cart, and there are none.
Here's the mail function portion of my php.ini:
[mail function]
; For Win32 only.
;SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i
What about Magic Quotes? When I installed OC, the installer reported Magic Quotes was off. I changed the php.ini file in the cart folder to put magic_quotes_gpc = On;
Here's the php.ini from the cart folder:
magic_quotes_gpc = On;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
max_upload_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
I really like this cart, I don't want to have to ditch it for something that seems so simple. Please help. Thank you very much in advance if you can offer a possible solution.
-Dan
Here's the mail function portion of my php.ini:
[mail function]
; For Win32 only.
;SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i
What about Magic Quotes? When I installed OC, the installer reported Magic Quotes was off. I changed the php.ini file in the cart folder to put magic_quotes_gpc = On;
Here's the php.ini from the cart folder:
magic_quotes_gpc = On;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 64M;
max_execution_time = 18000;
max_upload_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
I really like this cart, I don't want to have to ditch it for something that seems so simple. Please help. Thank you very much in advance if you can offer a possible solution.
-Dan
I just tried doing a mass mail to all my customers (me and my business partner), and the control panel said the mail was sent, but at the top of the screen, I got this message:
Notice: fputs() [function.fputs]: send of 6 bytes failed with errno=32 Broken pipe in /home2/myhostname/public_html/shop/system/library/mail.php on line 358Notice: fputs() [function.fputs]: send of 6 bytes failed with errno=32 Broken pipe in /home2/myhostname/public_html/shop/system/library/mail.php on line 358
What does this mean?
Notice: fputs() [function.fputs]: send of 6 bytes failed with errno=32 Broken pipe in /home2/myhostname/public_html/shop/system/library/mail.php on line 358Notice: fputs() [function.fputs]: send of 6 bytes failed with errno=32 Broken pipe in /home2/myhostname/public_html/shop/system/library/mail.php on line 358
What does this mean?
There are no errors. Thanks.JAY6390 wrote:Can you check the error log under SYSTEM > ERROR LOGS in the admin menu
If there's none, then you will have to contact your hosting. It might be that they don't allow the fputs function
I checked my host's error logs and saw several confusing things, but nothing that looked related to this.
Code: Select all
/home2/mydomain/public_html/shop/admin/controller/payment/error_log:
[01-Jan-2010 12:12:16] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/alertpay.php on line 2
[01-Jan-2010 12:12:16] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/authorizenet_aim.php on line 2
[01-Jan-2010 12:12:16] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/bank_transfer.php on line 2
[01-Jan-2010 12:12:18] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/cheque.php on line 2
[01-Jan-2010 12:12:18] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/cod.php on line 2
[01-Jan-2010 12:12:20] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/liqpay.php on line 2
[01-Jan-2010 12:12:20] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/moneybookers.php on line 2
[01-Jan-2010 12:12:20] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/paymate.php on line 2
[01-Jan-2010 12:12:20] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/paypoint.php on line 2
[01-Jan-2010 12:12:20] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/perpetual_payments.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/pp_pro.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/pp_pro_uk.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/pp_standard.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/sagepay.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/sagepay_direct.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/twocheckout.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/sagepay_us.php on line 2
[01-Jan-2010 12:12:21] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/payment/worldpay.php on line 2
/home2/mydomain/public_html/shop/admin/controller/feed/error_log:
[01-Jan-2010 12:12:11] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/feed/google_base.php on line 2
[01-Jan-2010 12:12:11] PHP Fatal error: Class 'Controller' not found in /home/opencart/public_html/dev/admin/controller/feed/google_sitemap.php on line 2
Who is online
Users browsing this forum: No registered users and 17 guests