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

Test email not working after save #25

Closed
jaishreeem opened this issue Oct 8, 2016 · 7 comments
Closed

Test email not working after save #25

jaishreeem opened this issue Oct 8, 2016 · 7 comments

Comments

@jaishreeem
Copy link

Hi All,
I able sent test email before press "Save Config" button. But test email not working after press "Save Config" button and received invalid username and password message. Store email also not sent.

Details:
Magento 2.1.1
MySQL 5.7.14
PHP 7.0.10

I have already reviewed below link. Suspect, not applicable for Magento 2.1.1
#7

Kindly help to resolve the issue. #

@srenon
Copy link
Contributor

srenon commented Oct 10, 2016

@jaishreeem ... Can you check to see what password magento is return after save .... (edit the controller to return the actual password)

@jaishreeem
Copy link
Author

@srenon ,

I have changed below line the file. I have observed that password return after save is NULL (blank).

Kindly advise whether is this the modification you expect or guide on modification.

File: Controller/Adminhtml/Test/Index.php
Original line: $result = __($e->getMessage());
Modified line: $result = __($e->getMessage()) . " u: {$username} p: {$password} - END";

@srenon
Copy link
Contributor

srenon commented Oct 10, 2016

Is this in a store view or global view? (are you run multi-store?)

The above code should have return your password

@chris-pook
Copy link

I have the same issue of test email not sending. Possibly different reason to above but it seems the password filed is not decrypted when you retrieve it in the helper

Maybe related to this: magento/magento2#2984

If I hard code my password in there instead of using the config value my emails start sending. Might be worth adding a note to the README that google will warn of unsecure account access from an unknown app when using the default settings of the module.

@srenon
Copy link
Contributor

srenon commented Oct 28, 2016

@chris-pook ... what version of magento are you using?

The wrong decryption of password should have been fix in magento #7

@chris-pook
Copy link

chris-pook commented Oct 28, 2016

This was in Magneto 2.1.2, PHP 7

@jaishreeem
Copy link
Author

@srenon
Thanks for the guidance.
I have observed that some issue in Magento cache. Issue resolved after performed below action without hard code password in file.

Action taken:
Magento Admin > System [Side Menu] > Cache Management [Sub Menu] > Flush cache storage [Button].

@chris-pook
I have observed that google accept SMTP connection without secuirty issue after used open certificate authority (like letsecrypt) and Google 2 step verification (App specific password).

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