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

Need help.can't send mail. #9

Closed
shuaiZend opened this issue Mar 18, 2016 · 18 comments
Closed

Need help.can't send mail. #9

shuaiZend opened this issue Mar 18, 2016 · 18 comments

Comments

@shuaiZend
Copy link

test send is okay.
but other email can't send.
have any log file?where?

@troncar
Copy link

troncar commented Mar 18, 2016

I have the same problem

@srenon
Copy link
Contributor

srenon commented Mar 18, 2016

@shuaiZend @troncar ... What version of magento and php are you running?

@troncar
Copy link

troncar commented Mar 18, 2016

Magento 2.0.2

@srenon
Copy link
Contributor

srenon commented Mar 18, 2016

What PHP version?

@shuaiZend
Copy link
Author

@srenon PHP7 and Magento2.0.2

@srenon
Copy link
Contributor

srenon commented Mar 19, 2016

@shuaiZend

This is a bug in magento when using php7 where the encrypting and decrypting of system config not working correctly. Also see #8

See Issue

magento/magento2#2984

magento/magento2#1223

To fix this issue see

magento/magento2@32ca5c9 or https://github.com/magento/magento2/pull/3054/files

@shuaiZend
Copy link
Author

@srenon thank you.
i fixed this.
used magento/magento2@32ca5c9

@shuaiZend
Copy link
Author

@srenon i used your last version...notice 5.7.8 Username and Password not accepted
But I still use the previous version's user name and password。
Previous versions can be email.

[2016-03-20 18:45:38] main.CRITICAL: Exception message: 5.7.8 Username and Password not accepted. Learn more at^M
 5.7.8  https://support.google.com/mail/answer/14257 yy7sm10584180obb.26 - gsmtp^M

Trace: #0 /home/wwwroot/mysite/vendor/magento/module-newsletter/Controller/Subscriber/NewAction.php(124): Magento\Newsletter\Model\Subscriber->subscribe('shuai.zend@hotm...')
#1 /home/wwwroot/mysite/var/generation/Magento/Newsletter/Controller/Subscriber/NewAction/Interceptor.php(24): Magento\Newsletter\Controller\Subscriber\NewAction->execute()
#2 /home/wwwroot/mysite/vendor/magento/framework/App/Action/Action.php(102): Magento\Newsletter\Controller\Subscriber\NewAction\Interceptor->execute()
#3 [internal function]: Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#4 /home/wwwroot/mysite/vendor/magento/framework/Interception/Interceptor.php(74): call_user_func_array(Array, Array)
#5 /home/wwwroot/mysite/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Newsletter\Controller\Subscriber\NewAction\Interceptor->___callParent('dispatch', Array)

@shuaiZend
Copy link
Author

@srenon I try to compare the two databases Email password field in core_config_data.
I found a version of the password is encrypted, the latest version is not encrypted.

@srenon
Copy link
Contributor

srenon commented Mar 20, 2016

Try re-saving ... and check the password again.

I just reenter my password on php 5.x, then check the password and it is encrypted.

So this must be a php7 or the changes you make issue.

Also what do you mean by previous and latest version?

@shuaiZend
Copy link
Author

I try re-saving password again. but still can't send email.
last version is 1.1, previous version is 1.0.
version 1.1 in databases is not encrypted email password.

@srenon
Copy link
Contributor

srenon commented Mar 20, 2016

Undo the changes you made for php7 and try saving again

@shuaiZend
Copy link
Author

I rollback data.php in php7.
and run cil cache:flush
and resaving password again.
still not encrypted.

@srenon
Copy link
Contributor

srenon commented Mar 21, 2016

Try doing bin/magento setup:upgrade instead. I just test on the dev branch without any issue

@shuaiZend
Copy link
Author

image

image
still not encrypted.

@srenon
Copy link
Contributor

srenon commented Mar 21, 2016

A quick way to test to see if this is issue only affect this module is to enable another module that encrypt password (uses <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>) eg payment module. Then look at the value in the database

@troncar
Copy link

troncar commented Mar 22, 2016

@shuaiZend PHP: 5.6.15

@srenon
Copy link
Contributor

srenon commented Mar 22, 2016

@troncar ... they should not be any issue with php 5.x. Follow these steps to debug #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants