Post by Daniel » Thu Mar 07, 2013 12:17 am

your problem is nothing to do with the mail system not working. you are receiving mails! you just don't like how the mail looks when you receive an order.

don't post here again! your problems are not even bugs just how you think things should work!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by eagle02 » Sat Mar 09, 2013 7:37 am

I just set up a shop (http://www.tinsoda.com) using OC 1.5.5.1 and have the issue of no e-mails being sent out from my site (inquiries, orders, registrations, etc.) to myself or my customers. My other shop (http://www.pacsol.com) on v 1.5.1.3 works just fine, which means PHP mail is working fine on my domain servers. Shop settings for Mail are the same for each shop (default settings). The shop e-mail works to send/receive e-mail from my e-mail client (Outlook). I've tried switching to the default theme to see if that would make a difference, but still no luck. Also made changes to mail.php (public $crlf = "\r\n"; to public $crlf = "\n";). Any help would be very appreciated!

Newbie

Posts

Joined
Fri Apr 06, 2012 1:15 am

Post by eagle02 » Sat Mar 09, 2013 8:20 am

I have been trying anything I can find in the forums to try and resolve my mail problem. I changed the mail.php by finding all instances of:

Code: Select all

. $this->newline . $this->newline 
and replacing it with:

Code: Select all

. $this->newline
And also changed: public $crlf = "\r\n"; to public $crlf = "\n";

I now get e-mail from my site. The only issue now is that on Inquiries from the Contact Us form, the body of the message is blank. Not sure what to do to get that resolved, but I can at least receive the inquiry and respond through my e-mail client to my customer to find out what their question is.

I'd appreciate any help to get my Inquiry form to send the message and not just the header.

Newbie

Posts

Joined
Fri Apr 06, 2012 1:15 am

Post by PlugGuy » Tue Mar 19, 2013 7:39 pm

[quote="huaruyue"]I also tried changing to the mail code from 1.5.5 with continued failures and a blank page after attempting...\\\

One thing we did (that we don't know if it 'fixed' this problem or not): upload the 1.5.5 files again.

Beyond that, and some of the code changes offered here, not really sure what fixed it, but it is working now for us, inquiries and orders, etc.

Orders still come to admin as basic text, but go to customers as full graphic HTML with logo, etc.

Working with a developer now to fix that one.
Last edited by PlugGuy on Tue Mar 19, 2013 8:18 pm, edited 2 times in total.

Chief Plug Guy
BumperPlugs.com


User avatar
Active Member

Posts

Joined
Fri Jan 25, 2013 11:11 pm


Post by Daniel » Tue Mar 19, 2013 8:02 pm

Can people who are posting issues here use more intelligence and start posting the message source because each of your problems sound different and also sounds like your mail system have not been configured properly. yet you expect me to come up with a solutions!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by theace » Wed Mar 20, 2013 12:24 pm

I'm having this issue too. Updated the store to v1.5.5.1 yesterday. The mail system doesn't send me or the customers any sort of emails at all.

Also, admin dashboard tells me to die. Image

New member

Posts

Joined
Sun Jun 17, 2012 2:17 am

Post by Daniel » Wed Mar 20, 2013 8:21 pm

reupload you might be missing some files.

also i think i have a fix for the mail issues.

basically in the admin going to add a field so people can choose which line ending style they want for their emails. can be \r\n or \n

if \n then need to add \n\n\n for this line:

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


the issue is that some mail systems are changing \r\n to \n\n. this is not opencarts fault. this is because what ever mail sevice your host has setup is not configured correctly.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by TreeFrog » Fri Mar 29, 2013 5:14 am

Hi Daniel,

I've been developing an OpenCart store for a few months now ("Old" website from 2008 is osCommerce - I like OpenCart much better!). I'm in the final stages, and the only thing holding me back from launching my site is this email issue. This is the best thread yet - and I feel as if I've read 40 or 50! But despite all the great suggestions in this thread, I have had no success yet.

I've tried everything listed above, checked my host's required port numbers, tried their SSL port, the non-SSL port, made the changes to mail.php listed above in this thread (changed: public $crlf = "\r\n"; to public $crlf = "\n", and also altered all instances of two "newline"s), didn't work so reverted back to the original mail.php file, tried after every change to send mail from the Contact page, customer registration, test purchase; checked/changed the Store email address, switched from php mail to SMTP mail and back again. My head is spinning. Not a single email has ever arrived anywhere (have checked spam folders). When using php Mail, OpenCart says mail has been sent successfully. When using SMTP, I've gotten all the typical error messages posted by others.

My host's instructions say I can use anyone's outgoing server I want, but I've tried several I have services with, with no luck anywhere.

I am using OpenCart version 1.5.2.1.

You ask that we post the message source, but I'm not sure what you mean - if you mean email messages, there aren't any, but if you mean anything else I'll be happy to post whatever will help solve this!

I'll attach my Email Settings screen as it is sitting now.
oc_mail_settings.jpg

My Email Settings - oc_mail_settings.jpg (41.36 KiB) Viewed 9646 times

Thanks very very much for any direction you can provide. If you need more info I'll send anything you need.
~Wendy O'Connor
Canada

p.s.: a little more info added: I just tried using the outgoing server of my account at Yahoo.ca (wouldn't use it in a production environment though) and setting the settings for SMTP, and sending a message from the Contact page. I got this error: Error: MAIL FROM not accepted from server!

Here's a screenshot of the new settings:




Not sure if this is another clue? Thanks.

Attachments

oc_mail_settings2.jpg

oc_mail_settings2.jpg (33.1 KiB) Viewed 9645 times


Newbie

Posts

Joined
Thu Nov 08, 2012 1:27 am
Location - Canada

Post by TreeFrog » Fri Mar 29, 2013 6:39 am

One more try ... tried this:
oc_mail_settings3.jpg

oc_mail_settings3.jpg (32.07 KiB) Viewed 9641 times

Got this error message: Error: RCPT TO not accepted from server!

Does it matter that this particular SMTP server does not require authentication? When I use one that does, and put in my known-good username and password, I get a message that says the password is not accepted (but at least this suggests there is some connection with the server?). I tried putting in gibberish username and password, and got the same message.

No matter what my settings, using SMTP gives me error messages; using php Mail says it goes through. In either case, nothing ever arrives.

For the last few hours I've been trying with the Contact Page, but attempts with new registrations and purchases have been similar. I'll attach my mail.php for reference.

Thanks again!
~Wendy

Newbie

Posts

Joined
Thu Nov 08, 2012 1:27 am
Location - Canada

Post by PlugGuy » Fri Mar 29, 2013 10:00 am

Try using MAIL protocol instead of SMTP.

Under the General Tab set your email address, then in the Mail settings:

Set it to MAIL

Don't bother with the other fields other than those below.

SMTP Port 587
SMTP Timeout 10
New Order Alert Yes
New Account Alert Yes

Chief Plug Guy
BumperPlugs.com


User avatar
Active Member

Posts

Joined
Fri Jan 25, 2013 11:11 pm


Post by TreeFrog » Fri Mar 29, 2013 10:35 am

Thanks PlugGuy,

However, I've tried MAIL numerous times. It always appears to go through, but no mail is delivered. I just tried again, with your suggested settings, but nothing's changed.

I realize this may well not be a bug, but a result of some mistake I've made! :o

Humbly,
~Wendy

Newbie

Posts

Joined
Thu Nov 08, 2012 1:27 am
Location - Canada

Post by PlugGuy » Fri Mar 29, 2013 8:54 pm

I assumed you may have already contacted your host/server on this - might be worth sending them the info on what you're trying and what is/is not working.

They helped me a few times on this stuff and we finally got it working.

The only issue for us is the mail we see as admin is basic text (order confirm), the customer gets a nice graphic html email. But there are some add-ons that I think correct this.

Best of luck.

Chief Plug Guy
BumperPlugs.com


User avatar
Active Member

Posts

Joined
Fri Jan 25, 2013 11:11 pm


Post by theace » Fri Mar 29, 2013 11:41 pm

I have it set to MAIL. However, the contact form says that a query has been submitted but I don't receive any email at all! Also, in the mailing list thing, the "Send" button cannot be clicked. The same happens with Vouchers, etc. "Send" cannot be clicked at all.

When an order's history is updated, no email is sent out. When someone uses the "Forgot password" feature, no email is sent out. When someone registers, no validation email (I have an extension) or welcome email is sent out. When someone orders, there's no order verification email.

New member

Posts

Joined
Sun Jun 17, 2012 2:17 am

Post by TreeFrog » Sat Mar 30, 2013 5:32 am

I've tried a few things since yesterday.

1) Double-checked that my store Email under Settings > General was correct. Obviously nothing would work if it wasn't! But it was correct.

2) Tried setting the store to the Default setting, rather than my Theme, which is Shoppica2. Made no difference.

3) Tried using the mail.php file from a more recent version of OpenCart. Made no difference.

I read up a little on php-based outgoing mail versus SMTP outgoing mail, and added some knowledge to my little brain. I've contacted my host for some direction as to what to do, as I now suspect the problem may be based in the fact that I don't currently have email set up at the host where I am constructing my OpenCart site (and therefore if their outgoing mail requires authentication, I have none to offer). As for trying a different outgoing host (I have tried this with no result), maybe there is some security feature in OpenCart that prevents mail from going out via a different host than the site's host? Does anyone know if OpenCart works this way?

I will let you know what I find out.

~Wendy

Newbie

Posts

Joined
Thu Nov 08, 2012 1:27 am
Location - Canada

Post by TreeFrog » Sun Mar 31, 2013 1:45 am

OK - here's what's new with my situation - it's improving! :)

I suspected it was not a bug, as I'd tried Daniel's suggestions above, to no avail. The wildcard remained my hosting service, or the way I have the cart hosted right now while it's in development (domainname.hostname.com).

In the end, I found that the php "Mail" setting works, if I use a Yahoo email address for both customer and store admin.

The only settings I used were:

Mail Protocol: "Mail"
STMP Port: 26 (as per my host's instructions)
STMP Timeout: 5
...and ticked Yes for the alert emails.

All this started working today. The other red herring is that my host did maintenance for 6 hours last night, changing servers, which is something that rarely happens, so I think they were doing a lot of work. Perhaps some settings changed at their end. PerHAPS (emphasis mine), they've actually read my emails and that prompted a fix. Who knows.

As soon as my site is live I will try to change the store's email to the proper one under my domain name. Site and email, by then, will be hosted by the same company, so all should be well.

So, anyone facing these problems, try everything mentioned in this thread, and also don't hesitate to bug your host, because the problem/solution could most certainly be at their end.

Happy Easter,
~Wendy in Canada

Newbie

Posts

Joined
Thu Nov 08, 2012 1:27 am
Location - Canada

Post by Daniel » Sun Mar 31, 2013 3:47 am

PlugGuy wrote:We fixed our email, but we DID send the note via contact the other day, got an auto reply we'd hear back within 48 hours, no joy there.

Then the checkout blew up with a flaw yesterday and we spent six hours trying to resolve, no joy there either.

We have moved to another version of O/C to help, but we'll spend all day rebuilding our site as a result.

The bigger issue is the OpenCart API Calls are missing some code on the hand off, and it's causing us trouble with accounting breakdown with PP Pro/Std.

See my other posts. Happy to PM you if you want to see the earlier reply we had to our 'contact' memo as you suggested.

Thanks.
works for me and many other peoples. actually works perfectly for the main opencart site and have not missed one order after 450 orders a day for 3 years.

checkouts don't just blow up. they work then some one messes with the code and they stop working!

don't pass this off as opencarts fault.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by PlugGuy » Sun Mar 31, 2013 5:24 am

Daniel wrote:
don't pass this off as opencarts fault.

Never said it was. :)

Chief Plug Guy
BumperPlugs.com


User avatar
Active Member

Posts

Joined
Fri Jan 25, 2013 11:11 pm


Post by Kazak Uralsky » Tue Apr 02, 2013 12:32 pm

I got problem resembles to TreeFrog's one.
SMTP protocol stopped to work. March 23 I've set email address via SMTP in Settings->Mail, according to my host's instructions (SMTP port 26 etc), and tested it. I received new order alerts, I registered myself and received New customer alert. Everything worked properly. Another email address, that was set in General, and wich receive alerts from Contact form, worked properly too.
Last night I accidentally found, that alerts dont send. Orders are show in Sales->Orders, but no alerts are received. When new user is trying to register (create account), when he click Continue after filling the form, following message shows:
Notice: Error: RCPT TO not accepted from server! in /home/my_hoster's_login/public_html/system/library/mail.php on line 308, and no email alerts receved on customer's email.
However, registration complete, and new customer shows in Customers, and he can log in then, but this is not ok, isn't it?
Alerts from Contact us works ok.
Today, I changed SMTP to MAIL. All alerts (new order, new customer) started to work properly on email address that was set in General, and new customer received his alert about his registration.
So. Of course, the situation described above is not disaster. Of course, receiving all alerts on one email (though I wanted to receive just Contact us emails) is pretty enough. But. Why alerts has stopped to work via SMTP? My hoster told me that no works affect to SMTP dont provide.
So, how to fix this problem, any ideas? Replacing mail.php for mail.php from installation pack didnt help.

http://www.allgadgets4you.com


User avatar
Newbie

Posts

Joined
Sat Mar 12, 2011 10:54 am
Location - China

Post by Kazak Uralsky » Mon Apr 08, 2013 9:06 am

No ideas?

http://www.allgadgets4you.com


User avatar
Newbie

Posts

Joined
Sat Mar 12, 2011 10:54 am
Location - China

Post by Daniel » Wed May 08, 2013 4:49 pm

smtp settings on your hosts side are clearly wrong.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 12 guests