SMTP Support FOR AbanteCart

I was setting up AbanteCart, but I’m unable to send email even by using SMTP. I’m using Gmail SMTP but its failing to send email

Can you share a screenshot of your SMTP settings?

Have you allowed Less Secure Applications in Gmail’s security settings?

yes i have done that,

Have you tried Gmail’s TLS port?
Try the same settings but using port 587.
Don’t you have any logs that can help debug the issue?

yep, I did TLS & SSL.
will share debug logs, after a few hours.

ERROR LOGS

2021-04-12 8:25:19 - warning: AbanteCart core v.1.2.16 set_time_limit() has been disabled for security reasons in /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/responses/common/resource_library.php on line 22
2021-04-12 8:25:21 - warning: AbanteCart core v.1.2.16 set_time_limit() has been disabled for security reasons in /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/responses/common/resource_library.php on line 22
2021-04-12 8:26:18 - warning: AbanteCart core v.1.2.16 set_time_limit() has been disabled for security reasons in /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/responses/common/resource_library.php on line 22
2021-04-12 8:26:20 - warning: AbanteCart core v.1.2.16 set_time_limit() has been disabled for security reasons in /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/responses/common/resource_library.php on line 22
2021-04-12 8:26:52 - warning: AbanteCart core v.1.2.16 fsockopen(): unable to connect to ssl://smtp.gmail.com:467 (Connection timed out) in /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/lib/mail.php on line 376
2021-04-12 8:26:52 - Error: Connection timed out (110)
2021-04-12 8:26:52 - App Error: AbanteCart core v.1.2.16 AMail Errors: Error: Connection timed out (110)

Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 257
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 162
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:26:52** - App Error: AbanteCart core v.1.2.16 Some errors during step run.
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 203
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 196
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:26:52** - Task_id: 9 : step_id: 9 - Failed. 0 emails sent.
step details:
array (
'step_id' => '9',
'task_id' => '9',
'sort_order' => '1',
'status' => '1',
'last_time_run' => '0000-00-00 00:00:00',
'last_result' => '0',
'max_execution_time' => '80',
'controller' => 'task/sale/contact/sendEmail',
'settings' =>
array (
'to' =>
array (
0 => '#####@gmail.com',
),
'subject' => 'test mail',
'message' => 'test',
'store_name' => 'IGSKMR',
'subscribers' =>
array (
'#####@gmail.com' =>
array (
'customer_id' => '17',
'firstname' => '###',
'lastname' => '####',
'loginname' => '####',
'email' => '####@gmail.com',
'sms' => '',
'status' => '1',
'approved' => '0',
'customer_group_id' => '1',
'date_added' => '2021-04-12 08:28:13',
'date_modified' => '2021-04-12 08:28:13',
'name' => '#####',
'customer_group' => 'Default',
'orders_count' => '0',
),
),
),
'date_added' => '0000-00-00 00:00:00',
'date_modified' => '2021-04-12 08:28:45',
)
**2021-04-12 8:27:02** - warning: AbanteCart core v.1.2.16 fsockopen(): unable to connect to ssl://smtp.gmail.com:467 (Connection timed out) in <b>/home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/lib/mail.php</b> on line <b>376</b>
**2021-04-12 8:27:02** - Error: Connection timed out (110)
**2021-04-12 8:27:02** - App Error: AbanteCart core v.1.2.16 AMail Errors: Error: Connection timed out (110)
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 257
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 162
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:02** - App Error: AbanteCart core v.1.2.16 Some errors during step run.
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 203
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 196
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:02** - Task_id: 9 : step_id: 9 - Failed. 0 emails sent.
step details:
array (
'step_id' => '9',
'task_id' => '9',
'sort_order' => '1',
'status' => '3',
'last_time_run' => '2021-04-12 08:26:42',
'last_result' => '0',
'max_execution_time' => '80',
'controller' => 'task/sale/contact/sendEmail',
'settings' =>
array (
'to' =>
array (
0 => '#####@gmail.com',
),
'subject' => 'test mail',
'message' => 'test',
'store_name' => 'IGSKMR',
'subscribers' =>
array (
'####@gmail.com' =>
array (
'customer_id' => '17',
'firstname' => '####',
'lastname' => '####',
'loginname' => '####',
'email' => '####@gmail.com',
'sms' => '',
'status' => '1',
'approved' => '0',
'customer_group_id' => '1',
'date_added' => '2021-04-12 08:28:13',
'date_modified' => '2021-04-12 08:28:13',
'name' => '#####',
'customer_group' => 'Default',
'orders_count' => '0',
),
),
),
'date_added' => '0000-00-00 00:00:00',
'date_modified' => '2021-04-12 08:28:56',
)
**2021-04-12 8:27:12** - warning: AbanteCart core v.1.2.16 fsockopen(): unable to connect to ssl://smtp.gmail.com:467 (Connection timed out) in <b>/home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/lib/mail.php</b> on line <b>376</b>
**2021-04-12 8:27:12** - Error: Connection timed out (110)
**2021-04-12 8:27:12** - App Error: AbanteCart core v.1.2.16 AMail Errors: Error: Connection timed out (110)
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 257
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 162
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:12** - App Error: AbanteCart core v.1.2.16 Some errors during step run.
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 203
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 196
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:12** - Task_id: 9 : step_id: 9 - Failed. 0 emails sent.
step details:
array (
'step_id' => '9',
'task_id' => '9',
'sort_order' => '1',
'status' => '3',
'last_time_run' => '2021-04-12 08:26:52',
'last_result' => '0',
'max_execution_time' => '80',
'controller' => 'task/sale/contact/sendEmail',
'settings' =>
array (
'to' =>
array (
0 => '#####@gmail.com',
),
'subject' => 'test mail',
'message' => 'test',
'store_name' => 'IGSKMR',
'subscribers' =>
array (
'###@gmail.com' =>
array (
'customer_id' => '17',
'firstname' => '####',
'lastname' => '####',
'loginname' => '####',
'email' => '#####@gmail.com',
'sms' => '',
'status' => '1',
'approved' => '0',
'customer_group_id' => '1',
'date_added' => '2021-04-12 08:28:13',
'date_modified' => '2021-04-12 08:28:13',
'name' => '#####',
'customer_group' => 'Default',
'orders_count' => '0',
),
),
),
'date_added' => '0000-00-00 00:00:00',
'date_modified' => '2021-04-12 08:29:06',
)
**2021-04-12 8:27:23** - warning: AbanteCart core v.1.2.16 fsockopen(): unable to connect to ssl://smtp.gmail.com:467 (Connection timed out) in <b>/home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/lib/mail.php</b> on line <b>376</b>
**2021-04-12 8:27:23** - Error: Connection timed out (110)
**2021-04-12 8:27:23** - App Error: AbanteCart core v.1.2.16 AMail Errors: Error: Connection timed out (110)
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 257
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 162
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:23** - App Error: AbanteCart core v.1.2.16 Some errors during step run.
Trace:
#0 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 203
#1 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 196
#2 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/admin/controller/task/sale/contact.php on line 74
#3 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 293
#4 /home/vol1_7/epizy.com/epiz_26303400/shop.igskmr.org/htdocs/core/engine/dispatcher.php on line 216
**2021-04-12 8:27:23** - Task_id: 9 : step_id: 9 - Failed. 0 emails sent.
step details:
array (
'step_id' => '9',
'task_id' => '9',
'sort_order' => '1',
'status' => '3',
'last_time_run' => '2021-04-12 08:27:02',
'last_result' => '0',
'max_execution_time' => '80',
'controller' => 'task/sale/contact/sendEmail',
'settings' =>
array (
'to' =>
array (
0 => '####@gmail.com',
),
'subject' => 'test mail',
'message' => 'test',
'store_name' => 'IGSKMR',
'subscribers' =>
array (
'####@gmail.com' =>
array (
'customer_id' => '17',
'firstname' => '####',
'lastname' => '####',
'loginname' => '####',
'email' => '#######',
'sms' => '',
'status' => '1',
'approved' => '0',
'customer_group_id' => '1',
'date_added' => '2021-04-12 08:28:13',
'date_modified' => '2021-04-12 08:28:13',
'name' => 'zaidan zahid',
'customer_group' => 'Default',
'orders_count' => '0',
),
),
),
'date_added' => '0000-00-00 00:00:00',
'date_modified' => '2021-04-12 08:29:16',
)

##### are used in place of name and email .

Maybe try using an App Password? (You will have to disable “Less Secure Apps” and enable 2-factor authorization first)

In the “SMTP host” field the value has to be ssl://smtp.gmail.com .
You need the “ssl://” before the server name.

This is from the AbantCart manual:

Example of Gmail SMTP

  • Mail Protocol – SMTP
  • SMTP Host - ssl://smtp.gmail.com
  • SMTP Username - your username (aka username if your email is [email protected])
  • SMTP Password - your Gmail password
  • SMTP Port - 465

As a security precaution, Google (Gmail) may prevent an application from accessing your account if it’s the first time Google has seen this application sign in to your account, or if it’s attempting to sign in from a new location.

Gmail sends an email “Suspicious sign-in prevented” and after login in Gmail asks you to confirm this attempt as legal. Just follow Google instructions. Also please check if you have any firewall on your server that blocks outgoing connections.

3 Likes

less secure apps are enabled. so that should be the problem

also did that still, no email connection works

With Less secure apps enabled should work.
The alternative (that Google recommends) is, like Greenreader9 mentioned, use an “app password”. But, for that, you have to enable 2 factor verification and then create an app password.

Hello, @zaidan.
Please Try the following:

  1. Disable the “Less Secure Apps” settings on accounts.google.com
  2. Go to accounts.google.com and turn on 2-factor authorization
  3. Go to the “Security” tab on accounts.google.com and click “App Passwords”
  4. Create an App Password (Do NOT close the window that appears)
  5. In a new tab, open the AbanteCart SMTP settings page.
  6. Enter the following:
  • Mail Protocol – SMTP
  • SMTP Host - ssl://smtp.gmail.com
  • SMTP Username - your username (aka username if your email is [email protected])
  • SMTP Password - The generated app password from step #4
  • SMTP Port - 465

I hope this helps!

5 Likes

flawless this worked like a dope.

thanks for your help brother.
helpful community.

salute to you!

3 Likes

Thanks! Glad I could help you out!

(If you enjoyed my answer, please mark it as the solution for others!)

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.