Skip to content
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

Magento2.3 Email not sending anymore #19795

Closed
Abdulkadiragoliya opened this issue Dec 15, 2018 · 27 comments
Closed

Magento2.3 Email not sending anymore #19795

Abdulkadiragoliya opened this issue Dec 15, 2018 · 27 comments
Assignees
Labels
Component: Email Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@Abdulkadiragoliya
Copy link

Abdulkadiragoliya commented Dec 15, 2018

Preconditions (*)

  1. Magento version #:Magento2.3.0
  2. Php version #: 7.2.13

Steps to reproduce (*)

  1. when contact form , create account or order placed happen email should send to customer and/or admin

Expected result (*)

  1. when contact form , create account or order placed happen email should send to customer and/or admin
  2. email should send to customer

Actual result (*)

  1. when order placed or contact form submited

  2. email not send to customer/admin

  3. Exception log display Error : [2018-12-15 06:13:41] main.CRITICAL: Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /public_html/vendor/zendframework/zend-validator/src/EmailAddress.php on line 560 {"exception":"[object] (Exception(code: 0): Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in /home/frankjewelers/public_html/vendor/zendframework/zend-validator/src/EmailAddress.php on line 560 at /home/public_html/vendor/magento/framework/App/ErrorHandler.php:61)"}

@magento-engcom-team
Copy link
Contributor

magento-engcom-team commented Dec 15, 2018

Hi @Abdulkadiragoliya. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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:

@magento-engcom-team give me $VERSION instance

where $VERSION is version tags (starting from 2.2.0+) or develop branches (for example: 2.3-develop).
For more details, please, review the Magento Contributor Assistant documentation.

@Abdulkadiragoliya do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed labels Dec 15, 2018
@Abdulkadiragoliya
Copy link
Author

Abdulkadiragoliya commented Dec 15, 2018

Yes

@mahesh-rajawat mahesh-rajawat self-assigned this Dec 15, 2018
@ghost ghost self-assigned this Dec 18, 2018
@ghost
Copy link

ghost commented Dec 18, 2018

Hi @Abdulkadiragoliya thank you for you report, i'm, not able to reproduce following steps you described on clean magento 2.3 instance, this may be related to your custom code, or environment.

@ghost ghost closed this as completed Dec 18, 2018
@ghost ghost added the Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch label Dec 18, 2018
@aldf
Copy link

aldf commented Dec 19, 2018

in magento: 2.3, php: 7.2 I got same error: Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated ..

so I downgrade php version to 7.1 then its work. http://php.net/manual/en/migration72.deprecated.php

or another solution is to upgrade icu to ICU 4.6 http://www.linuxfromscratch.org/blfs/view/8.3/general/icu.html

to check icu current vesion uconv -V

INTL_IDNA_VARIANT_2003 (integer) Use IDNA 2003 algorithm in idn_to_utf8() and idn_to_ascii(). This is the default. This constant and using the default has been deprecated as of PHP 7.2.0.

INTL_IDNA_VARIANT_UTS46 (integer) Use UTS #46 algorithm in idn_to_utf8() and idn_to_ascii(). Available as of ICU 4.6.

@hostep
Copy link
Contributor

hostep commented Dec 19, 2018

Thanks for the info @aldf

Could it be that https://github.com/magento/zf1/blob/1.14.1/library/Zend/Validate/EmailAddress.php#L455-L457 needs to be patched, the same way the zendframework/zend-mail package got fixed over here: https://github.com/zendframework/zend-mail/pull/189/files#diff-39993f6a028e96e169779688acedbfdc ?

In that case, this ticket should probably be re-opened.

And just add another reference to this issue: magento-engcom/php-7.2-support#12

@ghost ghost reopened this Dec 19, 2018
@ghost
Copy link

ghost commented Dec 19, 2018

Hi @aldf thank you for explanation, i upgrade to 7.2.13. and "welcome email" not comes, but have no exceptions.

@ghost ghost added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Component: Email Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch labels Dec 19, 2018
@magento-engcom-team
Copy link
Contributor

@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-97229 were created

@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Dec 19, 2018
@ghost ghost removed their assignment Dec 19, 2018
@mahesh-rajawat mahesh-rajawat removed their assignment Dec 19, 2018
@bhushanelsner
Copy link

mm19in

@magento magento deleted a comment from magento-engcom-team Feb 6, 2019
@magento magento deleted a comment from magento-engcom-team Feb 6, 2019
@magento magento deleted a comment from magento-engcom-team Feb 6, 2019
@magento magento deleted a comment from magento-engcom-team Feb 6, 2019
@R-K-Shrivastaw
Copy link

Hi, I am using the magento 2.3 developement, On creating a new user I am getting the error like this:
{"0":"Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-validator\/src\/EmailAddress.php on line 560","1":"#0 [internal function]: Magento\\Framework\\App\\ErrorHandler->handler(8192, 'idn_to_ascii():...', '\/home\/ccadminis...', 560, Array)\n#1 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-validator\/src\/EmailAddress.php(560): idn_to_ascii('example.com')\n#2 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-validator\/src\/EmailAddress.php(500): Zend\\Validator\\EmailAddress->idnToAscii('example.com')\n#3 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-validator\/src\/EmailAddress.php(527): Zend\\Validator\\EmailAddress->splitEmailParts('owner@example.c...')\n#4 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/Address.php(75): Zend\\Validator\\EmailAddress->isValid('owner@example.c...')\n#5 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/Address.php(53): Zend\\Mail\\Address->__construct('owner@example.c...', NULL, NULL)\n#6 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/AddressList.php(97): Zend\\Mail\\Address::fromString('owner@example.c...', NULL)\n#7 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/Message.php(531): Zend\\Mail\\AddressList->addFromString('owner@example.c...')\n#8 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/Message.php(130): Zend\\Mail\\Message->updateAddressList(Object(Zend\\Mail\\AddressList), 'owner@example.c...', NULL, 'Zend\\\\Mail\\\\Messa...')\n#9 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/zendframework\/zend-mail\/src\/Message.php(117): Zend\\Mail\\Message->addFrom('owner@example.c...', NULL)\n#10 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Mail\/Message.php(95): Zend\\Mail\\Message->setFrom('owner@example.c...')\n#11 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/Framework\/Mail\/Message\/Interceptor.php(89): Magento\\Framework\\Mail\\Message->setFrom('owner@example.c...')\n#12 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Mail\/Template\/TransportBuilder.php(185): Magento\\Framework\\Mail\\Message\\Interceptor->setFrom('owner@example.c...', 'Owner')\n#13 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/Framework\/Mail\/Template\/TransportBuilder\/Interceptor.php(76): Magento\\Framework\\Mail\\Template\\TransportBuilder->setFrom('general')\n#14 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-user\/Model\/Notificator.php(94): Magento\\Framework\\Mail\\Template\\TransportBuilder\\Interceptor->setFrom('general')\n#15 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-user\/Model\/Notificator.php(153): Magento\\User\\Model\\Notificator->sendNotification('admin\/emails\/ne...', Array, 'owner@example.c...', 'Administrator')\n#16 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-user\/Model\/User.php(480): Magento\\User\\Model\\Notificator->sendCreated(Object(Magento\\User\\Model\\User\\Interceptor))\n#17 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/User\/Model\/User\/Interceptor.php(154): Magento\\User\\Model\\User->sendNotificationEmailsIfRequired()\n#18 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-user\/Controller\/Adminhtml\/User\/Save.php(102): Magento\\User\\Model\\User\\Interceptor->sendNotificationEmailsIfRequired()\n#19 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/User\/Controller\/Adminhtml\/User\/Save\/Interceptor.php(24): Magento\\User\\Controller\\Adminhtml\\User\\Save->execute()\n#20 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/App\/Action\/Action.php(108): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->execute()\n#21 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-backend\/App\/AbstractAction.php(231): Magento\\Framework\\App\\Action\\Action->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#22 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Backend\\App\\AbstractAction->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#23 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->___callParent('dispatch', Array)\n#24 \/home\/ccadministrator\/public_html\/ANGEL\/app\/code\/WeltPixel\/Backend\/Plugin\/Utility.php(76): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#25 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): WeltPixel\\Backend\\Plugin\\Utility->aroundDispatch(Object(Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#26 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/module-backend\/App\/Action\/Plugin\/Authentication.php(143): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#27 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(135): Magento\\Backend\\App\\Action\\Plugin\\Authentication->aroundDispatch(Object(Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor), Object(Closure), Object(Magento\\Framework\\App\\Request\\Http))\n#28 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#29 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/User\/Controller\/Adminhtml\/User\/Save\/Interceptor.php(39): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->___callPlugins('dispatch', Array, NULL)\n#30 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/App\/FrontController.php(159): Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#31 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/App\/FrontController.php(99): Magento\\Framework\\App\\FrontController->processRequest(Object(Magento\\Framework\\App\\Request\\Http), Object(Magento\\User\\Controller\\Adminhtml\\User\\Save\\Interceptor))\n#32 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(58): Magento\\Framework\\App\\FrontController->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#33 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(138): Magento\\Framework\\App\\FrontController\\Interceptor->___callParent('dispatch', Array)\n#34 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/Interception\/Interceptor.php(153): Magento\\Framework\\App\\FrontController\\Interceptor->Magento\\Framework\\Interception\\{closure}(Object(Magento\\Framework\\App\\Request\\Http))\n#35 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/Framework\/App\/FrontController\/Interceptor.php(26): Magento\\Framework\\App\\FrontController\\Interceptor->___callPlugins('dispatch', Array, Array)\n#36 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/App\/Http.php(135): Magento\\Framework\\App\\FrontController\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#37 \/home\/ccadministrator\/public_html\/ANGEL\/generated\/code\/Magento\/Framework\/App\/Http\/Interceptor.php(24): Magento\\Framework\\App\\Http->launch()\n#38 \/home\/ccadministrator\/public_html\/ANGEL\/vendor\/magento\/framework\/App\/Bootstrap.php(258): Magento\\Framework\\App\\Http\\Interceptor->launch()\n#39 \/home\/ccadministrator\/public_html\/ANGEL\/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http\\Interceptor))\n#40 {main}","url":"\/ANGEL\/admin_1c7znx\/admin\/user\/save\/key\/5d35a82ebc19ffae21797f7df064804864de387adb277fba88bbc4639ce82c7c\/active_tab\/main_section\/","script_name":"\/ANGEL\/index.php"}

It seems a bug please help me on it.

@lfluvisotto
Copy link
Contributor

Working on branch 2.3 and 2.3-develop with PHP 7.2.15

@styzzz
Copy link

styzzz commented Apr 16, 2019

has this issue been resolved? Same exact issue here. Running Magento 2.3.1 with php7.2

@EmilyPepperman
Copy link
Contributor

I also have the same issue Magento 2.3.1 and php7.2

@lfluvisotto
Copy link
Contributor

@styzzz, @EmilyPepperman

Make sure that PHP extension int (https://www.php.net/manual/en/book.intl.php) is installled and loaded.

You can check executing via command line in php -m

@styzzz
Copy link

styzzz commented Apr 24, 2019

Guys this is the solution. My server ran CentOS6....php7.2 and Magento 2.3.1 cannot work with CentOS6.....you need CentOS7...

Until your server gets CentOs7, you need to downgrade your php to 7.1

thats the solution. Happen to me, investigated for weeks. Fixed it. Waiting for my server to update their software to version 7 so I can use php7.2....it has to do with a messed up php ICO 4.2 that exists in OS6, whereas php7.2 requires version ICO 4.6 which only comes with CentOs7...

DOWNGRADE to php 7.1

@poliver1
Copy link

Can I downgrade to 7.1 if I'm running magento 2.3.1????

Will it work?

@styzzz
Copy link

styzzz commented Apr 25, 2019

Can I downgrade to 7.1 if I'm running magento 2.3.1????

Will it work?

Yes. I did it and it worked perfectly fine with Magento 2.3.1

@R-K-Shrivastaw
Copy link

No, But with me in Magento 2.3.0 After downgrade php version, Some of the basic functionality dosn't work in PHP 7.1

@R-K-Shrivastaw
Copy link

Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in

Any luck on this error.

@jozefpinter
Copy link

Deprecated Functionality: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated in

Any luck on this error.

i can confirm.

@AndyJAllen
Copy link

AndyJAllen commented Jun 19, 2019

Also having this issue. As @styzzz pointed out it might be because I'm trying to run Magento 2.3.1 & PHP7.2 within the scope of CentOS 6.... I'm going to see if I can find any work around. I would prefer not to have to downgrade PHP or upgrade CentOS.... The provision profile for PHP 7.1 on GoDaddy does not work for Magento, because its not the minimum supported version of PHP 7.1....its 7.1.20 instead of 7.1.33.... second, CentOS6 cannot be upgraded on a GoDaddy VPS; they give you a notice that it will be deprecated next year and if you want to upgrade before hand, you have to get a new server and service costing an extra $119 a month.... otherwise you will be automatically upgraded next November.

@AndyJAllen
Copy link

I ended up patching my PHP7.1 and downgrading to it to resolve this problem...

@toddrobards
Copy link

toddrobards commented Jul 18, 2019

I had to downgrade to PHP 7.1 (7.1.13) which fixed my issues so far.
My host runs Centos 6.9, as Centos 7 is not supported by Hsphere apparently so can't upgrade to Centos 7.
Edit: I'm running M2.3.2.

@vDeggial
Copy link

Hopefully it will be solved soon ... kinda want to move to PHP 7.2 .... a small point of migrating from M 2.2.9 to M 2.3.2 ;)

@Anantkprajapati
Copy link

Hopefully this will work for temporary solution with php7.2 and magento2.3.x

For avoiding the error: Deprecated Functionality add error_reporting(E_ALL ^ E_DEPRECATED); into bootstrap.php so email are works

@m2-assistant
Copy link

m2-assistant bot commented Dec 26, 2019

Hi @engcom-Charlie. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@engcom-Charlie engcom-Charlie removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Dec 26, 2019
@engcom-Charlie
Copy link
Contributor

Hello @Abdulkadiragoliya

I am not able to reproduce this issue on a fresh Magento 2.4-develop.

Testing scenario:

  1. Create account with your email
  2. Place order
  3. Check your email

Result:
All emails have send:
image
image
image

So i have to close this issue as not reproducible.

Please feel free to comment, reopen or create new ticket according to the Issue reporting guidelines
if you are still facing this issue on the latest Magento 2.4-develop branch.

Thank you for collaboration.

@engcom-Charlie engcom-Charlie added the Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch label Dec 26, 2019
@hostep
Copy link
Contributor

hostep commented Dec 26, 2019

@engcom-Charlie: for completeness sake, can you also test with an older version of the ICU library?
This was reported in the following comment.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Email Issue: Cannot Reproduce Cannot reproduce the issue on the latest `2.4-develop` branch Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests