Author Topic: Mail sending issues  (Read 5348 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: 4978
  • Karma: +257/-2
    • 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

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: 4321
  • Karma: +291/-10
    • 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.
Please  rate your experience or leave your review
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: 4321
  • Karma: +291/-10
    • 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!
Please  rate your experience or leave your review
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.

CTGO.co

  • Guest
Re: Mail sending issues
« Reply #8 on: July 11, 2019, 05:19:06 PM »
hello!

When someone using contact us form, the form arriving and notification email arriving to admin website. when the admin reading the messages top of dashboard there is tow messages waiting, 1st one is the client's form and the 2nd is Error: E-Mail sender required!

I'm using SMTP mailer and the permissions for those file public_html>task.php : 644 and public_html>admin>controller>task>sales>contact.php : 755



Shall I change the permissions too??



here is the contains of error log:

2019-07-12 0:04:34 - App Error: AbanteCart core v.1.2.15 AForm error: can't to move uploaded file to
Trace:
#0 /home/u8526052/public_html/core/engine/form.php on line 750
#1 /home/u8526052/public_html/storefront/controller/pages/content/contact.php on line 46
#2 /home/u8526052/public_html/core/engine/dispatcher.php on line 293
#3 /home/u8526052/public_html/core/engine/dispatcher.php on line 328
#4 /home/u8526052/public_html/core/engine/page.php on line 108
2019-07-12 0:04:34 - App Error: AbanteCart core v.1.2.15 AForm error: can't to move uploaded file to
Trace:
#0 /home/u8526052/public_html/core/engine/form.php on line 750
#1 /home/u8526052/public_html/storefront/controller/pages/content/contact.php on line 46
#2 /home/u8526052/public_html/core/engine/dispatcher.php on line 293
#3 /home/u8526052/public_html/core/engine/dispatcher.php on line 328
#4 /home/u8526052/public_html/core/engine/page.php on line 108
2019-07-12 0:04:34 - App Error: AbanteCart core v.1.2.15 AForm error: can't to move uploaded file to
Trace:
#0 /home/u8526052/public_html/core/engine/form.php on line 750
#1 /home/u8526052/public_html/storefront/controller/pages/content/contact.php on line 46
#2 /home/u8526052/public_html/core/engine/dispatcher.php on line 293
#3 /home/u8526052/public_html/core/engine/dispatcher.php on line 328
#4 /home/u8526052/public_html/core/engine/page.php on line 108
2019-07-12 0:04:34 - Error: E-Mail sender required!
2019-07-12 0:04:43 - warning: AbanteCart core v.1.2.15 Use of undefined constant CACHE_DRIVER - assumed 'CACHE_DRIVER' (this will throw an Error in a future version of PHP) in <b>/home/u8526052/public_html/core/helper/system_check.php</b> on line <b>126</b>





Thanks for your patient

Regards

SAMY

Offline dvagner

  • Core/UI Developer
  • Jr. Member
  • **
  • Posts: 58
  • Karma: +24/-1
    • View Profile
Re: Mail sending issues
« Reply #9 on: July 12, 2019, 01:41:25 AM »
Check file permissions

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4978
  • Karma: +257/-2
    • View Profile
Re: Mail sending issues
« Reply #10 on: July 12, 2019, 01:54:13 AM »
Did you add "file" upload to the contact us form? If so check that upload folder exist and writable

CTGO.co

  • Guest
Re: Mail sending issues
« Reply #11 on: July 12, 2019, 12:47:10 PM »
Check file permissions

I changed it to 777 and nothing positive.

CTGO.co

  • Guest
Re: Mail sending issues
« Reply #12 on: July 12, 2019, 12:48:24 PM »
Did you add "file" upload to the contact us form? If so check that upload folder exist and writable

I disabled the file upload and nothing positive too.

CTGO.co

  • Guest
Re: Mail sending issues
« Reply #13 on: July 12, 2019, 12:54:00 PM »
here a screenshot for error.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 4978
  • Karma: +257/-2
    • View Profile
Re: Mail sending issues
« Reply #14 on: July 15, 2019, 01:15:45 AM »
Clean the AbanteCart error log and try again.
Check for latest errors after fail

 

Powered by SMFPacks Social Login Mod