By hugoelliott
I’ve set up Wordpress in a Digital Ocen droplet.
I’m trying set up an SMTP WordPress plugin in order to send emails via Gmail. Specifically, I’m trying to set up
https://wordpress.org/plugins/gmail-smtp/
and I’m following this guide
http://www.wpbeginner.com/plugins/how-to-send-email-in-wordpress-using-the-gmail-smtp-server/
When I navigate in my browser to www.domain.com I go to my site, and the URL in the browser shows as www.domain.com.
However, when I then navigate to the wp-admin (www.domain.com/wp-admin) and log in, the URL in the browser gets changed to IP address/wp-admin.
Then when I set up the plugin and “Create a new web application and set its Authorised Redirect URL to the one shown on this page” (the first step in the process) I get the following error message in Google
Invalid Redirect: http://IP Address/wp-admin/options-general.php?page=gmail-smtp-settings&action=oauth_grant must end with a public top-level domain (such as .com or .org).
If anyone has a good idea on how to change my WordPress wp-admin log in URL to show my domain name instead would be much appreciated.
Many thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you xMudrii - this worked perfectly!
I can’t believe I overlooked something so simple…
What is your WordPress and Home URL? Both should match your domain and you can check it by logging in to WP Admin, going to Settings -> General. There you can find both Home and WordPress url.
Hello hugoelliott:
What are the URL of your WordPress site and home page? The two should match your domain name. You can verify this by logging into your WordPress admin dashboard and going to Settings -> General. There you will see both the homepage and WordPress URL.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.