Author Topic: Email system fails using gmail account  (Read 312 times)

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Email system fails using gmail account
« on: October 01, 2018, 10:32:27 AM »
I have never been able to get the smtp gmail email system to work. I've followed the instructions carefully, but only get a 500 error message. Ideas?

Example of Gmail SMTP

Mail Protocol – SMTP

SMTP Host - ssl://smtp.gmail.com

SMTP Username - your username (aka username if your email is username@gmail.com) (NOT adding @gmail.com, although both ways fail)

SMTP Password - your gmail password

SMTP Port - 465

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
  • Karma: +185/-0
    • View Profile
Re: Email system fails using gmail account
« Reply #1 on: October 02, 2018, 01:15:09 AM »
Hello.
There is a few steps google force users to allow SMTP
https://www.arclab.com/en/kb/email/how-to-enable-imap-pop3-smtp-gmail-account.html
You should enable "Less secure apps" and Enable "IMAP Access"
“Chuck Norris is so amazing.”
― Mother Teresa

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Re: Email system fails using gmail account
« Reply #2 on: October 02, 2018, 10:09:12 AM »
Sadly IMAP and POP3 are both turned on in the gmaail settings section and also to allow for non-secure applications is allowed.

I still get the Step 1 - failed. (Connection error occurred. HTTP-status:500) message and have tried SSL StartTLS, differennt outbound ports but nothing changes.

Any other ideas?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
  • Karma: +185/-0
    • View Profile
Re: Email system fails using gmail account
« Reply #3 on: October 02, 2018, 10:17:11 AM »
Where did you see Step 1 - failed?
I do not remember anything like that in AbanteCart Mail
“Chuck Norris is so amazing.”
― Mother Teresa

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Re: Email system fails using gmail account
« Reply #4 on: October 02, 2018, 10:26:58 AM »
After each and every fiddle with the settings, I sent a test email to myself from the sales section of the Admin menu. It always fails, and unfortunately AbanteCart doesn't have a test system button on the configuration page to make the configuration process easier. I've never had problems with other web programs, just this one.

Is there information about NON SMTP sending anywhere?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
  • Karma: +185/-0
    • View Profile
Re: Email system fails using gmail account
« Reply #5 on: October 03, 2018, 01:25:38 AM »
First of all clean the error log on server and in AbanteCart and try again.
Should be some error in both or one of the log regarding problem
“Chuck Norris is so amazing.”
― Mother Teresa

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Re: Email system fails using gmail account
« Reply #6 on: October 03, 2018, 02:56:08 PM »
I built a test server and found that the ssl gmail settings would not work. I tried the generic mail and it did!

I reset the permissions on the working server, set the mail subsystem to generic WITHOUT any email address modifications, line 2 and it appears to work. The AbanteCart instructions are far too vague and lack screen print examples.

So the takeaway is to reset all of the folders permissions to 0755 and do not bother with gmail, in instance. I'm not sure if there was a permissions issue since I was throwing multiple possible solutions as nothing was working and it worked, without the email modifiers.

Thanks a lot for your ideas. You pointed me in the right direction.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
  • Karma: +185/-0
    • View Profile
Re: Email system fails using gmail account
« Reply #7 on: October 04, 2018, 01:43:52 AM »
Thanks for posting solution
“Chuck Norris is so amazing.”
― Mother Teresa

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Re: Email system fails using gmail account
« Reply #8 on: October 08, 2018, 11:47:19 AM »
I found that it wasn't the real solution. After further work, I found that the PHP in use was v7. When I changed it to v5.6 and the mail subsytem worked properly, although I never got smtp.gmail.com to work.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
  • Karma: +185/-0
    • View Profile
Re: Email system fails using gmail account
« Reply #9 on: October 09, 2018, 01:07:04 AM »
I found that it wasn't the real solution. After further work, I found that the PHP in use was v7. When I changed it to v5.6 and the mail subsytem worked properly, although I never got smtp.gmail.com to work.

Hi. Latest AbanteCart was tested in php 7.2.5 so SMTP is works fine at least in our test environment. Looks like issue is related to your server setup
“Chuck Norris is so amazing.”
― Mother Teresa

Offline alevene

  • Full Member
  • ***
  • Posts: 104
  • Karma: +6/-7
    • View Profile
Re: Email system fails using gmail account
« Reply #10 on: October 09, 2018, 08:27:56 AM »
The update to 1.2.13 partially failed so I've been working on that. If the update was robust, or there were clear instructions to do a manual update, they aren't, then 7.x may have worked and saved a lot of time.