Announcement

Collapse
No announcement yet.

I have a problem fetching mails

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I have a problem fetching mails

    Hello, I have a problem getting emails.

    In two cases, private emails and group emails
    The system sends emails excellently
    But do not get emails

    I checked CRON and everything works excellently

    I add here Screenshots
    01 Mail Settings group
    02 personal email settings
    03 CRON job of both

    I would be grateful for your help!

    Regards
    Orit

  • #2
    Hi, I've got a similar problem:

    After updating EspoCRM (4.1.5 -> 4.1.6 (with error at first time, next update OK) -> 4.2.2) Espo no longer getting e-mails.

    Account type: group email account
    E-mail account: gMail, access via IMAP and SSL, port 993
    Source folder: another that INBOX

    Connection test: OK

    CRON task works fine - when e-mail account is turned off (log OK).
    When I set it to active - CRON task stops working (no further entries in the log).

    It occurs when the folder contains messages and when is empty.

    Deleting CRON task, group email account and creating it again didn't help.

    Apache log looks fine.

    Comment


    • #3
      Hi,

      Anything in error log? Not EspoCRM log but apache log.

      What is in Administration > Scheduled Jobs > Check Personal Email Accounts > Log ??

      Comment


      • #4
        This is what I see in EspoCRM Admin Panel

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 15-05-30.png
Views:	318
Size:	26.5 KB
ID:	23318

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 14-50-22.png
Views:	282
Size:	22.0 KB
ID:	23317

        Click image for larger version

Name:	screenshot-crm.bialkowski.net.pl 2016-08-17 15-01-26.png
Views:	237
Size:	39.8 KB
ID:	23316

        Comment


        • #5
          server error log

          Comment


          • #6
            Last position in /var/log/httpd/error_log:

            [Wed Aug 17 06:22:58 2016] [error] [client ***.***.***.***] File does not exist: /etc/***/favicon.ico, referer: http://***/phpinfo/

            No further entries

            Comment


            • #7
              1. Please remove Running Job (that you highlighted)
              2. Run in terminal php cron.php immediately after step 1.

              You will see error message.

              Comment


              • #8
                Or chache your cron expression in crontab to

                >> /path/to/logfile.txt

                Comment


                • #9
                  No error message after executing (via PUTTY)

                  php /path/to/espocrm/cron.php


                  Comment


                  • #10
                    Do you still have the running job? Maybe your max execution time is too little?


                    Can you disable cron for a while and then repeat the same. There should be an error before that job hangs with Running status. That means that error occurred but could not be catched.

                    Comment


                    • #11
                      Since cron runs in command line interface errors not recorded in apache log. But they could be recorded in another log defined in php.ini.

                      Comment


                      • #12
                        OK, I've got it.

                        My mistake - Scheluded Job "Check Group e-mail Accounts" status was set to Inactive, that's why error message didn't appeared

                        PHP Fatal error: Can't use function return value in write context in /PATH/TO/CRM/application/Espo/Core/Mail/Importer.php on line 75
                        Last edited by michalbialkowski; 08-17-2016, 02:13 PM.

                        Comment


                        • #13
                          What version of php?

                          Comment


                          • #14
                            PHP Version 5.4.45

                            Comment


                            • #15
                              BTW we will end supporting of php 5.4 in the next major release.

                              Comment

                              Working...
                              X