question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google email custom domain

See original GitHub issue

Hi, thanks for apprise.

This worked for me: mailtos://USERNAME:APPPASSWORD@gmail.com

But then I decided to create my custom domain. For example, user/app pass is test@domain.com/1234567890 I’ve tried:

mailtos://test@domain.com:1234567890@gmail.com
mailtos://test%40domain.com:1234567890@gmail.com
mailtos://test:1234567890@domain.com
mailtos://test:1234567890@domain.com?smtp=smtp.gmail.com

And tried to add user=, pass=, from=, smtp= and all other options. Always the same:

2021-11-25 16:10:01,895 - INFO - Notifying 1 service(s) asynchronously.
2021-11-25 16:10:01,896 - DEBUG - Email From: Apprise Notifications <update@news-watcher.com>
2021-11-25 16:10:01,896 - DEBUG - Email To: slava.ganzin@gmail.com
2021-11-25 16:10:01,896 - DEBUG - Login ID: update
2021-11-25 16:10:01,896 - DEBUG - Delivery: smtp.gmail.com:587
2021-11-25 16:10:01,896 - DEBUG - Connecting to remote SMTP server...
2021-11-25 16:10:01,975 - DEBUG - Securing connection with STARTTLS...
2021-11-25 16:10:02,106 - DEBUG - Applying user credentials...
2021-11-25 16:10:02,306 - WARNING - A Connection error occurred sending Email notification to smtp.gmail.com.
2021-11-25 16:10:02,307 - DEBUG - Socket Exception: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials h10sm1985799edk.41 - gsmtp')

So, how should I format mailtos string if I have Google-bound custom domain?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
caronccommented, Dec 16, 2022

Try: mailtos://vanity.tld/user+notification@vanity.tld?smtp=smtp.gmail.com&user=user@vanity.tld&pass=secret

Alternatively you need to provide a URL escape for the @ in the user ID if you use the way you had it; see here: https://github.com/caronc/apprise/wiki/Troubleshooting#special-characters-and-url-conflicts

1reaction
slavaGanzincommented, Nov 27, 2021

@caronс I thought I tried all combinations, but the one you advised works. mailtos://domain.com?smtp=smtp.gmail.com&user=test@domain.com&pass=1234567890

Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use Gmail With Your Own Domain Name (2 Methods ...
How to use Gmail with your own domain name by paying for Google Workspace (G Suite) · 1. Create a Google Workspace account...
Read more >
Email options in Google Domains
Google Domains gives you 2 email options: Custom email with Google Workspace: Every Google Workspace subscription includes custom email, video meetings, ...
Read more >
Get a professional email address – Getting Started
Use built-in email forwarding or get professional email along with other tools ... Get Google Workspace with Google Domains. ... Custom send from...
Read more >
How To Create a Professional Business Email
Learn how to create a custom business email address with Google Workspace. Your professional email includes 24/7 support and other business essentials.
Read more >
How to Use Gmail with Your Custom Domain (Free & Paid ...
How to Enable Gmail to work with your Custom domain name for Free · Step 1: Create A Gmail Account · Step 2:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found