Author Topic: Mail sending issues  (Read 341 times)

Offline Mint Online

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Mail sending issues
« on: January 17, 2019, 04:29:26 PM »
Hi,

I'm having some issues with sending emails. When I use the Send Email feature I get:

Quote
Task Failed
0 messages have been sent.
Step 1 - failed. (Connection error occurred. HTTP-status:403)

When a customer fills in a form I get the following errors in the log:

Quote
2019-01-17 21:27:26 - warning: AbanteCart core v.1.2.13 Illegal string offset 'directory' in <b>/home/.../public_html/core/engine/form.php</b> on line <b>695</b>
2019-01-17 21:27:26 - App Error: AbanteCart core v.1.2.13 AForm error: can't to move uploaded file to
Trace:
#0 /home/.../public_html/core/engine/form.php on line 706
#1 /home/.../public_html/storefront/controller/pages/content/contact.php on line 44
#2 /home/.../public_html/core/engine/dispatcher.php on line 293
#3 /home/.../public_html/core/engine/dispatcher.php on line 328
#4 /home/.../public_html/core/engine/page.php on line 98
2019-01-17 21:27:26 - App Error: AbanteCart core v.1.2.13 AForm error: can't to move uploaded file to
Trace:
#0 /home/.../public_html/core/engine/form.php on line 706
#1 /home/.../public_html/storefront/controller/pages/content/contact.php on line 44
#2 /home/.../public_html/core/engine/dispatcher.php on line 293
#3 /home/.../public_html/core/engine/dispatcher.php on line 328
#4 /home/.../public_html/core/engine/page.php on line 98
2019-01-17 21:27:26 - warning: AbanteCart core v.1.2.13 Illegal string offset 'directory' in <b>/home/.../public_html/core/engine/form.php</b> on line <b>695</b>
2019-01-17 21:27:26 - App Error: AbanteCart core v.1.2.13 AForm error: can't to move uploaded file to
Trace:
#0 /home/.../public_html/core/engine/form.php on line 706
#1 /home/.../public_html/storefront/controller/pages/content/contact.php on line 44
#2 /home/.../public_html/core/engine/dispatcher.php on line 293
#3 /home/.../public_html/core/engine/dispatcher.php on line 328
#4 /home/.../public_html/core/engine/page.php on line 98
2019-01-17 21:27:26 - App Error: AbanteCart core v.1.2.13 AForm error: can't to move uploaded file to
Trace:
#0 /home/.../public_html/core/engine/form.php on line 706
#1 /home/.../public_html/storefront/controller/pages/content/contact.php on line 44
#2 /home/.../public_html/core/engine/dispatcher.php on line 293
#3 /home/.../public_html/core/engine/dispatcher.php on line 328
#4 /home/.../public_html/core/engine/page.php on line 98
2019-01-17 21:27:26 - warning: AbanteCart core v.1.2.13 Illegal string offset 'directory' in <b>/home/.../public_html/core/engine/form.php</b> on line <b>695</b>
2019-01-17 21:27:26 - App Error: AbanteCart core v.1.2.13 AForm error: can't to move uploaded file to
Trace:
#0 /home/.../public_html/core/engine/form.php on line 706
#1 /home/.../public_html/storefront/controller/pages/content/contact.php on line 44
#2 /home/.../public_html/core/engine/dispatcher.php on line 293
#3 /home/.../public_html/core/engine/dispatcher.php on line 328
#4 /home/.../public_html/core/engine/page.php on line 98
2019-01-17 21:27:26 - Error: E-Mail sender required!

In either case no emails are received. With the form the admin panel notification message does appear.

I've tried both Mail and SMTP options.

Any advice on how to resolve would be appreciated.

Thanks
« Last Edit: January 17, 2019, 04:31:13 PM by mintonline »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4054
  • Karma: +201/-0
    • View Profile
Re: Mail sending issues
« Reply #1 on: January 18, 2019, 12:41:00 AM »
Hello. 403 error mean you have wrong permission to files.
Check task.php https://github.com/abantecart/abantecart-src/blob/master/public_html/task.php
and admin/controller/task/sale/contact.php
https://github.com/abantecart/abantecart-src/blob/master/public_html/admin/controller/task/sale/contact.php


For the customers form. From error looks like you add upload field to the contact us form and set wrong directory or not writable directory for that field
“Chuck Norris is so amazing.”
― Mother Teresa

Offline Mint Online

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Mail sending issues
« Reply #2 on: January 18, 2019, 12:42:28 PM »
Thanks for the quick reply Basara.

I will check those settings and get back to you to confirm if it resolved the issue or not.

Offline Mint Online

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Mail sending issues
« Reply #3 on: January 18, 2019, 01:40:27 PM »
Hi again,

Changed the permissions on those two files to 644, and now I get the following error instead on Send Mail:

Quote
Step 1 - failed. (Task_id: 9 : step_id: 9 - Failed. 0 emails sent.)

Form upload still has the same error, the upload folder is "admin/system/uploads" and the permissions on that folder are 777.

Thanks
Trev

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4139
  • Karma: +250/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Mail sending issues
« Reply #4 on: January 19, 2019, 11:50:04 AM »
Hi again,

Changed the permissions on those two files to 644, and now I get the following error instead on Send Mail:

Quote
Step 1 - failed. (Task_id: 9 : step_id: 9 - Failed. 0 emails sent.)

Form upload still has the same error, the upload folder is "admin/system/uploads" and the permissions on that folder are 777.

Thanks
Trev

There should an error in the log related to the failed message. Check for that and share.
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Mint Online

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Mail sending issues
« Reply #5 on: January 20, 2019, 07:03:49 AM »
The errors in the log are below. Also when trying to send an email it hangs at 1% for a while then fails whereas before it was failing immediately.

Quote
2019-01-20 12:00:56 - Error: EHLO not accepted from server!
2019-01-20 12:00:56 - Error: AUTH LOGIN not accepted from server!
2019-01-20 12:00:56 - Error: Username not accepted from server!
2019-01-20 12:00:56 - Error: Password not accepted from server!
2019-01-20 12:00:56 - Error: MAIL FROM not accepted from server!
2019-01-20 12:00:56 - Error: RCPT TO not accepted from server!
2019-01-20 12:00:56 - Error: DATA not accepted from server!
2019-01-20 12:00:56 - Error: DATA not accepted from server!
2019-01-20 12:00:56 - Error: QUIT not accepted from server!
2019-01-20 12:00:56 - App Error: AbanteCart core v.1.2.13 AMail Errors: Error: EHLO not accepted from server!
Error: AUTH LOGIN not accepted from server!
Error: Username not accepted from server!
Error: Password not accepted from server!
Error: MAIL FROM not accepted from server!
Error: RCPT TO not accepted from server!
Error: DATA not accepted from server!
Error: DATA not accepted from server!
Error: QUIT not accepted from server!
Trace:
#0 /home/.../public_html/admin/controller/task/sale/contact.php on line 251
#1 /home/.../public_html/admin/controller/task/sale/contact.php on line 158
#2 /home/.../public_html/admin/controller/task/sale/contact.php on line 70
#3 /home/.../public_html/core/engine/dispatcher.php on line 293
#4 /home/.../public_html/core/engine/dispatcher.php on line 216
2019-01-20 12:00:56 - App Error: AbanteCart core v.1.2.13 Some errors during step run.
Trace:
#0 /home/.../public_html/admin/controller/task/sale/contact.php on line 198
#1 /home/.../public_html/admin/controller/task/sale/contact.php on line 192
#2 /home/.../public_html/admin/controller/task/sale/contact.php on line 70
#3 /home/.../public_html/core/engine/dispatcher.php on line 293
#4 /home/.../public_html/core/engine/dispatcher.php on line 216
2019-01-20 12:00:56 - Task_id: 10 : step_id: 10 - Failed. 0 emails sent.
step details:
array (
'step_id' => '10',
'task_id' => '10',
'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 => '***',
),
'subject' => 'Test',
'message' => 'Test',
'store_name' => '***',
'subscribers' =>
array (
),
),
'date_added' => '0000-00-00 00:00:00',
'date_modified' => '2019-01-20 12:00:50',
)

Thanks
Trev
« Last Edit: January 20, 2019, 07:06:36 AM by Mint Online »

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4139
  • Karma: +250/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Mail sending issues
« Reply #6 on: January 22, 2019, 10:34:09 PM »
There is a clear connection/authentication error in your mail server.

Code: [Select]
Error: EHLO not accepted from server!
Error: AUTH LOGIN not accepted from server!
Error: Username not accepted from server!
Error: Password not accepted from server!
Error: MAIL FROM not accepted from server!
Error: RCPT TO not accepted from server!
Error: DATA not accepted from server!
Error: DATA not accepted from server!
Error: QUIT not accepted from server!
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline Mint Online

  • Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Mail sending issues
« Reply #7 on: January 27, 2019, 01:52:58 PM »
I've sorted it now, thanks for the help.

 

Powered by SMFPacks Social Login Mod