-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
5.7.8 Username and Password not accepted after save config on magento2 #7
Comments
What version of 2.x are you using? Follow option number 2 https://support.google.com/accounts/answer/6010255 or click on this link https://www.google.com/settings/security/lesssecureapps |
hi |
If you retype the username/password (without saving) does it sill work? Also take a look at https://laracasts.com/discuss/channels/general-discussion/help-email-doesnt-get-sent-with-gmail-smtp What option is enabled at https://www.google.com/settings/security/lesssecureapps ? |
yes if i retype password without saving the email test will work |
Which option is check at https://www.google.com/settings/security/lesssecureapps? |
for less secure apps was allowed
|
Are you a developer or are you comfortable with making simple code changes so that we can see what the issue is? |
im not a developer but i can try to do it
|
what i have to do |
I want you to check to make sure the password is the same after saving So go to /Controller/Adminhtml/Test/Index.php Change
to
The popup will show you the username and password (remember to change back the code once finish) Is the username/password correct? |
where i can find this folder ? it is in magento2 root folder?
|
Base on which method you use to install it either in app/code/MagePal/GmailSmtpApp or in vender/magento/magento2-gmailsmtpapp |
i just did what you said now ill go test it
|
without save config test mail popup username and password right, then i save config try test again it popup "5.7.8 Username and Password not accepted. Learn more at 5.7.8 https://support.google.com/mail/answer/14257 https://support.google.com/mail/answer/14257 p125sm16820391wmd.16 - smtp" |
Sorry, undo that change and do this instead change to
|
the password show like this "p: ��)�����” username is normal |
Does your password contain special characters? Do you know your database character set |
no special characters its normal upcase letter and numbers. i just checked my database character set it is in latin1. |
Try enter your password as |
i input abc123 and save config then password like this "p: �vMu$Yt�" |
Log into your database. Go to or
Is the password |
+-----------+---------+----------+------------------------------+-----------------------------------------------------------------------------------+ |
Try deleting that row and resave (using the same password as above) and resave |
i can not find how to delete it |
What program are you use to interact with the db? |
terminal,I’m connect linux server through terminal.
|
Always backup
|
+-----------+---------+----------+------------------------------+-----------------------------------------------------------------------------------+
|
Are you still having issue connecting to gmail? You issue seem to be encrypting and decrypting not working correctly similar to these issue What version of php are you running? |
i actually using php 7 , is the php7 cause this issue? if i change php to 5.6 it will work normally ?
|
I think so, can you test on v5.6 and let me know. On v7 you could also try magento/magento2@32ca5c9 or https://github.com/magento/magento2/pull/3054/files |
sure i’ll let you know. and thank you for all help.
|
fix the issue on php7 with link you give me, now working fin. |
Are you still having issues (since you close and then reopen this issue)? |
how can i configure this app send different email addresses, like ”noreply@gmail.com”send email for account registration ,”support@gmail.com”for support.
|
maybe i didn’t explain well, i have multi gmail addresses, i want use my owner@gmail.com for general contact sender mail, and support@gmail.com as customs support sender mail ,is that possible.
|
No, that not possible because you would need to setup two set of user name and password. You could setup a 'no-reply@company.com' then have the reply-to set to the different email address (as shown in the previous email). The original message won't be send thru that email but all other correspondent |
I see, i have no more questions. |
its working before i save the config ,i try the mail setting test and it works ,after i saved the config on magento2 i try again mail test , i get 5.7.8 Username and Password not accepted,how i can fix it
The text was updated successfully, but these errors were encountered: