Replies: 22 comments 2 replies
-
Hello @glennmuk , |
Beta Was this translation helpful? Give feedback.
-
Dropping this here and if needed I can provide more info. Had the same problem, switched to pop3 protocol and different port 995 (pop3 is ussualy on this port)
I did not have time to test attachements more (to see if it's breaking on two attachements, or some extensions) @sagarkumar-webkul if needed I can provide more info. EDIT: |
Beta Was this translation helpful? Give feedback.
-
Hello @pekiZG, vidoe link - https://webkul.chatwhizz.com/share/view-recording/68a463f0b7af9f05d399dd8c |
Beta Was this translation helpful? Give feedback.
-
Nice! But that is tied to pop3 protocol settigns wich I described. |
Beta Was this translation helpful? Give feedback.
-
I have tried with the Gmail IMAP configuration, which is: Host: imap.gmail.com Port: 993 Encryption: SSL/TLS |
Beta Was this translation helpful? Give feedback.
-
Tnx; I will debug it (IMAP settings) and write down what I have found in my case. |
Beta Was this translation helpful? Give feedback.
-
You can mention here |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I am only getting back to this now. The instructions in the User Docs and Dev Docs didn't mention the need to run the command. php artisan inbound-email:process Thanks for the blog link. I have followed the steps in the blog but receive this sendgrid error. I didn't expect this error as I have updated my .env file to webklex-imap, so it shouldn't be looking for sendgrid. Error received when trying to run 'php artisan inbound-email:process' ( Do I need to update something else to bypass sendgrid? It should really be trying to use this file: WebklexImapEmailProcessor.php |
Beta Was this translation helpful? Give feedback.
-
Hello, @glennmuk If the You can try running: php artisan config:clear
php artisan cache:clear to make sure the latest |
Beta Was this translation helpful? Give feedback.
-
OK, I ran these two commands and it seems to have worked this time. I no longer get the sendgrid error. However, I still receive no email. I have just noticed something interesting when sending email. My email is sent. When the person tries to reply to my email, my email address changes to a UNIX epoch number (timestamp). For example: [email protected] Any ideas? |
Beta Was this translation helpful? Give feedback.
-
@glennmuk I just commented out this line: But I'm not sure if it was right thing to do. Maybe @sagarkumar-webkul, @suraj-webkul or someone else knows more :) |
Beta Was this translation helpful? Give feedback.
-
You’re right — the If you comment out that line, the email will still go through and replies will come back to the So it depends on the requirement:
|
Beta Was this translation helpful? Give feedback.
-
Tnx @suraj-webkul I commented it out in the beginning until I have set up a catch all for emails on the domain. EDIT: |
Beta Was this translation helpful? Give feedback.
-
@pekiZG |
Beta Was this translation helpful? Give feedback.
-
I see changes done. Give me 15 minutes. I can also confirm on my side. |
Beta Was this translation helpful? Give feedback.
-
Works also on my side i have testes it with this settigns in .env config.
For some reason I can not get it to work with IMAP_PROTOCOL=imap; TLDR: attachements work :) |
Beta Was this translation helpful? Give feedback.
-
@sagarkumar-webkul it was not a misconfiguration on my side. So the thing is that InboundEmailProcessor is traversing through folders (the part where processMessagesFromLeafFolders is being called foreach folder). But there is one return statement that should not be there. Why you ask? Solution is to just comment out that return statement. Also sidenote for IMAP; My suggestion would be to only process INBOX that would simplify the code. EDIT: Ignore the suggestion I just recalled that folders are being mapped, so maybe just process those folders as safeguard? |
Beta Was this translation helpful? Give feedback.
-
Thanks @suraj-webkul and @pekiZG I did some testing on this last night. There really should be information in the documentation about this CRM email feature. With further testing, I decided to use a different IMAP host for a different mailbox to see if there might be a difference and yes there was! Overnight, I have changed my IMAP email provider to this new host and now this is working for me. All other settings remained the same. I was using rackspace email and I could not get my IMAP working at all. My SMTP was OK for sending email. Now that I have moved my email to my new provider (a local provider in Ireland), my emails are working. And, my new provider allows for the creation of a catch-all email so I can confirm that this is also working. The responses via the [email protected] are threading correctly and the responses are coming into my conversation. @pekiZG - For your IMAP problem, I would recommend testing it with another email provider. I don't know why rackspace wasn't working for me but this change has made everything work. On the attachments, I am still having an issue. I have updated AttachmentRepository.php with new code updates. In WebklexImapEmailProcessor.php line 54: The email is then received in the CRM, but no attachments are on the email. Thanks again for all your help. |
Beta Was this translation helpful? Give feedback.
-
@glennmuk try clearing the cache via Regarding my IMAP problem, Im 99% sure that there is logical error in the code. I can also suggest trying out Cloudflare. You can register domain there, and it has catch all and forward to where you want. As a last note regarding documentation, you can edit and create PR here. |
Beta Was this translation helpful? Give feedback.
-
OK, thanks for your help @suraj-webkul @sagarkumar-webkul @pekiZG . I have decided to keep my main email out of Krayin CRM and only use a gmail account in Krayin. I won't use the CRM to manage customer emails as there are too many little problems (bugs). Instead, I will keep my customer emails separate and when I receive an email in that needs to be attached to a lead for records, I will forward it into my CRM (gmail account). That seems to be the best way forward for now. A couple of things I have noticed. On another email, I sent one from my [email protected] to my yahoo account. When I hit reply, it should have tried to reply to [email protected], to go back to my CRM and into the threaded conversation. ![]() Also, the Inbox is not refreshing at all. I thought it was meant to be every 5 mins as a CRON job? This isn't working for me. I have to keep running this command in the terminal to fetch emails. FEATURE REQUEST - There should be a button on the Inbox page to Fetch Email. Finally, the MAIL_FROM_NAME="${APP_NAME}" from the SMTP settings, does not send. It does not send your app name with the SMTP email. This needs to be fixed. So for now, I feel the email section is not ready for a general production environment. If anyone else gets stuck using GMAIL for their Krayin project, I have found that the following settings works for me: SMTP and IMAP Settings. GMAIL Settings. MAIL_MAILER=smtp MAIL_RECEIVER_DRIVER=webklex-imap IMAP_HOST=imap.gmail.com Thanks |
Beta Was this translation helpful? Give feedback.
-
Request for manual fetch button already exists in #2268 |
Beta Was this translation helpful? Give feedback.
-
I see that attachements fix was merged; what about IMAP issue that we are having? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Title
IMAP email not being received - webklex-imap
Issue Description
NO IMAP EMAIL RECEIVED
After setting up my IMAP settings in both the .env file and also Configuration --> IMAP Settings, I cannot receive any email.
Note: I can send email OK via smtp.
Preconditions
Please provide as detailed information about your environment as possible.
Steps to reproduce
It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.
In the .env file - I have set:
MAIL_RECEIVER_DRIVER=webklex-imap
IMAP_HOST=mail.hostname.com (example)
IMAP_PORT=993
IMAP_ENCRYPTION=ssl
IMAP_VALIDATE_CERT=true
IMAP_USERNAME=[email protected] (example)
IMAP_PASSWORD=myEmailPassword (example)
Also, in my application via my admin login - Configuration --> IMAP Settings in the application, I have also set the following:
Host - mail.hostname.com (example)
Port - 993
Encryption Type - ssl
Validate SSL Certificate - true
IMAP Username - [email protected] (example)
IMAP Password - myEmailPassword (example)
What other settings should I be updating?
I cannot receive any email.
Expected result
Email should be received.
Actual result
Beta Was this translation helpful? Give feedback.
All reactions