AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Mint Online on January 17, 2019, 04:29:26 PM

Title: Mail sending issues
Post by: Mint Online 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
Title: Re: Mail sending issues
Post by: Basara 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
Title: Re: Mail sending issues
Post by: Mint Online 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.
Title: Re: Mail sending issues
Post by: Mint Online 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
Title: Re: Mail sending issues
Post by: abantecart 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.
Title: Re: Mail sending issues
Post by: Mint Online 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
Title: Re: Mail sending issues
Post by: abantecart 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!
Title: Re: Mail sending issues
Post by: Mint Online on January 27, 2019, 01:52:58 PM
I've sorted it now, thanks for the help.
Title: Re: Mail sending issues
Post by: CTGO.co 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
Title: Re: Mail sending issues
Post by: dvagner on July 12, 2019, 01:41:25 AM
Check file permissions
Title: Re: Mail sending issues
Post by: Basara 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
Title: Re: Mail sending issues
Post by: CTGO.co on July 12, 2019, 12:47:10 PM
Check file permissions

I changed it to 777 and nothing positive.
Title: Re: Mail sending issues
Post by: CTGO.co 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.
Title: Re: Mail sending issues
Post by: CTGO.co on July 12, 2019, 12:54:00 PM
here a screenshot for error.
Title: Re: Mail sending issues
Post by: Basara on July 15, 2019, 01:15:45 AM
Clean the AbanteCart error log and try again.
Check for latest errors after fail
Title: Re: Mail sending issues
Post by: CTGO.co on July 21, 2019, 07:40:44 AM
Clean the AbanteCart error log and try again.
Check for latest errors after fail

I do next error only: 2019-07-21 14:29:59 - Error: E-Mail sender required!

I couldn't share screenshot because the max. allowed file size 650 kb. only
Title: Re: Mail sending issues
Post by: Basara on July 22, 2019, 12:55:53 AM
In your AbanteCart Mail setting what type of sender you have? SMTP or Php Mail?
Title: Re: Mail sending issues
Post by: CTGO.co on July 27, 2019, 05:48:00 PM
Clean the AbanteCart error log and try again.
Check for latest errors after fail



This is the log error which i got:

2019-07-28 0:45:39 - Error: E-Mail sender required!


2019-07-28 0:46:18 - 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>


Title: Re: Mail sending issues
Post by: HADY on December 25, 2019, 04:38:35 AM
Did you add "file" upload to the contact us form? If so check that upload folder exist and writable

Hello!
1. Where we gonna find the upload folder?
2. If someone sent a contact us form and uploaded a file, where it will be saved ??
3. why the contact us from appears only on admin dashboard and not arriving to the website admin's email??

Regards
HADY
Title: Re: Mail sending issues
Post by: Basara on December 25, 2019, 05:21:05 AM
Upload Directory - directory where uploaded files will be saved. Your directory will be created in _your_site_folder_/admin/system/uploads.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/13500486/Forms+Manager
Title: Re: Mail sending issues
Post by: HADY on December 25, 2019, 05:45:55 AM
Upload Directory - directory where uploaded files will be saved. Your directory will be created in _your_site_folder_/admin/system/uploads.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/13500486/Forms+Manager

Thanks Basara!
That was very helpful. What about my 3rd question please??

Regards
Hady
Title: Re: Mail sending issues
Post by: Basara on December 25, 2019, 08:08:06 AM
It is hard to answer. Incorrectly configured mail, hosting mail rules, sender (smtp provider).....
Title: Re: Mail sending issues
Post by: HADY on December 26, 2019, 03:17:20 AM
It is hard to answer. Incorrectly configured mail, hosting mail rules, sender (smtp provider).....


All of these rules were taken into consideration and applied correctly. What is missing then ??