-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Magento 2.3 mail send issue #20033
Comments
Hi @visahardik. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @visahardik do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@visahardik are you using XAMPP with Linux or MacOS? You need to debug further what is going wrong on your env, otherwise such issue looks pretty hard to reproduce and investigate by others. |
I am using XAMPP with Windows 10. I tried to debug but does not give proper error TranString return files path but not give error. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
HI @visahardik thank you for you report, i'm not able to reproduce following steps you described. |
Hi All, {"result":false,"message":"Error sending email. We can't process your request right now.","data":"Unable to send mail: Unknown error"} Before 2.3 upgrade everything was working fine, but after upgrade only got issue because latest version had updates on Transport.php file, ....please try to help someone. Thanks in advance. |
Same issue using docker |
Same issue here, order and invoice emails are not sent anymore after the 2.2.8 and 2.3.1 upgrade. |
@rvinothraj @itsazzad @pixmin this cannot be investigated without a proper debug on your side. Set a breakpoint at line where error is thrown to see what is causing an issue. Is it correct that you're not using XAMPP? |
@orlangur Correct, not using XAMPP (on Debian / Apache) I have no error message for the order / invoice process, but I'm now going to check if I can reproduce and get more information with the problems reported by @visahardik |
@orlangur Sorry but when trying to reproduce, I get no error: On Magento 2.3.1, go in the back office: Sales > Orders and open an order If I switch to 2.3.0 on the very same environment, I get the email... Would love to help debug this issue, but how? Note: The issue is exactly the same with Magento 2.2.x (works in 2.2.7 and stopped working on 2.2.8) |
Please try this. And then check stack trace in runtime to see what is an underlying error. |
@orlangur As I said, I have absolutely no error, at least nowhere I am looking: Browser console and network tab, Apache logs, Magento logs (all log files in var/log: system and debug log files). |
@pixmin it's not about any error in logs. Set xdebug breakpoint at line where such exception is thrown and check stack trace and variable values before it is thrown. |
I have no exception thrown... none. |
@pixmin you need to find a place in code where Usually this is some exception throwning. |
@orlangur Sorry, I might need to create a new issue as I am not having this error. I have absolutely no error anywhere. No indication that there is a problem with email sending except for the fact that I do not receive them... |
@pixmin did you have installed 3rd party extension ? |
@engcom-backlog-nazar None, it's a fresh install (on both 2.2.8 and 2.3.1) |
@pixmin ok, so this instance installed on local environment or cloud ? |
@engcom-backlog-nazar local environment I'm afraid. But (just in case you missed that part), when I install a 2.2.7 or 2.3.0 on the very same environment, emails just work... I haven't gone through the process of diff'ing both versions to check if anything email-related changed... |
@pixmin can you try send email by |
@engcom-backlog-nazar One of the first thing I tried, email goes through instantly... And emails also go through just fine on the same server with both 2.2.7 and 2.3.0... Thanks for helping me debugging it! |
@nikhil91100 can you try sending mail from server and check if that's sent? |
@navaneeth008 done using mail() function and its successful but no mail received . |
@nikhil91100 so its an issue with server not magento, please check with server support team |
I have the same problem. Have someone this magical commit what repair this issue? Where I can find the solution for it before next release? |
Whats the best way to disable the contact form and replace it with an email address? |
Ok, I had really stupid mistake. For extra bcc email addresses, what I want to add to each email, I set emails separete by semicolon, not comma (that is mistake). This situation has no error information. And after all the SenderBuilder can't read it properly, and don't send anything. I think that should be protect somehow agaist this situation. Becuase email with order can't go to clients. If it not go to my extra email it's not a problem, but if client can't recaive order it is. And as usually, the configuration can do some people from ecommerce, not from IT, they can do that mistake and not record it. |
Any update ? |
Same issue in 2.3.1, any update in 2.3.2? could you provide some patch? |
@nikhil91100 @winds1983 what do you mean? Issue is fixed in to-be-released |
@orlangur ok , thanks |
@orlangur Thank, I know you have already fix it on 2.3.2, could you send us patch or some fixed file? And when will release 2.3.2? |
@winds1983 it was fixed without link to this issue, so, exact patch should be found by somebody. I don't know dates for 2.3.2, it is already tested internally for some time (new contributions currently target 2.3.3 already). |
2.3.2 is too late. Customers are complaining now. Not in 2 month. |
For the people trying to find out the release date of Magento 2.3.2, it was mentioned on Slack in a public channel by 2 different Magento employees, one said it would be around 26th of June and the other said it would be in the middle of June. So it's not a hard date, but it should be around that period. |
@orlangur Ok, thanks. |
If it's true, somebody please find an exact patch and post it here. |
I have the same problem. Where can I find the patch? |
2.3.2 is released. |
If Magento 2.3.2 is a fresh install, it could be with the server missing the sendmail: check first if php mail is installed: then install: run this again: if it is blank then it should work now. Try to send from the contact form to see if it works. |
2.3.2 here
|
Email stops working after upgrade to 2.3.2 |
I created #23645 for the remaining issue with the contact form. |
I found it might be the issue of the $parameters of PHP-Mail /vendor/zendframework/zend-mail/src/Transport/Sendmail.php - line 305: $result = mail($to, $subject, $message, $headers, $parameters); When debugging the $parameters that shows: '-f'email@example.com' then it will not send any email out. But if it changed to '-f email@example.com' then I can receive the email. |
We had a look and experienced the same issue. |
This may help people with who has the same env with my site:
|
We got this issue after upgrade to 2.3. We are running in AWS and sending email vis SES. But on trying with 5 argument('-fsomeone@example.com'), we got below error in console. Thus we debugged the files and found that the 5th argument is the cause for this issue. Earlier magento versions was using zendframework1 and the mail function was having only 4 arguments. Thus email is failing when trying to sent it via providers such as SES. To fix this we had added below entry in sendmail configuration in ini files. In magento 2.3 new zendframework is using and mail function is having 5 arguments. In this version they have fixed the issue by adding '-fsomeone@example.com' as the 5th argument. This is creating conflict with the fix added in ini files. By removing the entries in ini files, now email started working from 2.3 instance. |
@manucorra solution worked for me... thanks |
If sendmail isn't installed, install it: sudo apt-get install sendmail |
Preconditions
Steps to reproduce
Expected result
Actual result
Same env works for every mail like register, new order and any other with 2.2.7 or 2.3.0
The text was updated successfully, but these errors were encountered: