Hi,
1. Yes, without the openings php tag.
2. You doing great,the code is fetching it but it’s not saved on db – as I said before it’s not visible on the admin to other users.
Thread Starter
Alwin
(@wp-opti)
I have added the 2 lines of code in my wp-config file and now I am not able to login at my website:
at the page mydomain.com//wp-login.php I get a blank page (http error 500)
Thread Starter
Alwin
(@wp-opti)
Can you help me with this please?
Use this
define( 'POST_SMTP_AUTH_USERNAME', 'my@gmail.com');
define( 'POST_SMTP_AUTH_PASSWORD', 'MY_GMAIL_PASS');
Thread Starter
Alwin
(@wp-opti)
Yes, I did use this:
define( ‘POST_SMTP_AUTH_USERNAME’, ‘my@gmail.com’);
define( ‘POST_SMTP_AUTH_PASSWORD’, ‘MY_GMAIL_PASS’);
But then I am not able to login at my website anymore!
I placed the code at the bottom of the wp-config file, and after that I get a blank page (http error 500) when I go the the wp-adim of wp-login.php pages.
So your code is causing problems.
It’s funny that you showing me a text that is completely different from the one I posted as a code.
What you used and posted has some kind of reversed backtick char and what I have asked you to put has apostrophe around the strings.
So again paste my code under this tag <?php on your wp-config.php file
define( 'POST_SMTP_AUTH_USERNAME', 'my@gmail.com');
define( 'POST_SMTP_AUTH_PASSWORD', 'MY_GMAIL_PASS');
Thread Starter
Alwin
(@wp-opti)
I just copied and paste your own code….
this is the code from your previous reply (and the one I use)
define( ‘POST_SMTP_AUTH_USERNAME’, ‘my@gmail.com’);
define( ‘POST_SMTP_AUTH_PASSWORD’, ‘MY_GMAIL_PASS’);
something is not going comnpletely well in this conversation… no problem, I am glad with your help 🙂
These are the last lines of my wo-config file like it is now:
define( ‘WP_DEBUG’, false );
define( ‘DISALLOW_FILE_EDIT’, true );
define(‘WP_MEMORY_LIMIT’, ‘512M’);
/* That’s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( ‘ABSPATH’ ) ) {
define( ‘ABSPATH’, dirname( __FILE__ ) . ‘/’ );
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . ‘wp-settings.php’ );
define( ‘POST_SMTP_AUTH_USERNAME’, ‘myusername’);
define( ‘POST_SMTP_AUTH_PASSWORD’, ‘mypassword’);
So what am I doning wrong?
Thread Starter
Alwin
(@wp-opti)
So I tried it again… with the wp-config file like in my previous post
When I send the contactform I get this message from Post SMTP:
You getting this message because an error detected while delivered your email.
For the domain: https://www.fotograaf-groningen.nl
The log to paste when you open a support issue:
5.7.0 Invalid login or password
Invalid login or password – the login details are wrong.
if you are using Gmail the user name is your email address.
Do you have some kind of security in the account? 2FA ?
Thread Starter
Alwin
(@wp-opti)
I am not using Gmail or 2FA.
I use the SMTP server of the webhost who is hosting the site.
I am sure the username and password in wp-config are correct, because when I use this password and username in the Post SMTP settings, then the contactform is sent.
So, when I add the code to my wp-config file do I still have to enter the correct password in the Post SMTP settings as well? Or can I just fill in a fake password in the Post sMTP settings?
I just tested it and everything working with this method.
I will suggest do this:
1. login by the browser and validate that user name and password are ok.
2. type the user name and password manually not paste, maybe something is not good when you paste.
Thread Starter
Alwin
(@wp-opti)
It seems to be working now 🙂
But what about this question:
when I add the code to my wp-config file do I still have to enter the correct password in the Post SMTP settings as well? Or can I just fill in a fake password in the Post sMTP settings?
Great, You can out fake password
Thread Starter
Alwin
(@wp-opti)
Oke… now I have the correct password in wp-config and a fake password in Post SMTP settings and the problem is back:
You getting this message because an error detected while delivered your email.
For the domain: https://www.fotograaf-groningen.nl
The log to paste when you open a support issue:
5.7.0 Invalid login or password
Thread Starter
Alwin
(@wp-opti)
Conclusion:
The contactform is only being send with the correct password in the Post SMTP settings (with or without the code in wp-config).
So with the correct password in the Post SMTP settings I quess the code in wp-config is useless then?