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

Updated email notifications #41

Closed
danielmbrown603 opened this issue Dec 21, 2021 · 7 comments
Closed

Updated email notifications #41

danielmbrown603 opened this issue Dec 21, 2021 · 7 comments
Labels
support Support Requests

Comments

@danielmbrown603
Copy link

I tried googling this one but coming up short. So, I have a special character in my password (#) and its not playing well with the docker composer file. In the previous email notification, I could enclose each entry with quotes but does not seem like I can do that here. Any idea how I could use this method with a password that contains a special character?

smtp://username:password@host:port/?fromAddress=fromAddress&toAddresses=recipient1

Thank you

@m90
Copy link
Member

m90 commented Dec 21, 2021

You should be able to do one of three things:

@danielmbrown603
Copy link
Author

How do I URL encode the string? I’m not sure what that means. Can you provide an example?

I’ll update my docker-composer later today and try that too.

Again, thanks for the help. I’m learning a lot.

@m90
Copy link
Member

m90 commented Dec 21, 2021

URL encoding allows you to use reserved characters in a URL String. Imagine you need to use & in the value of a query param. ?value=this&that will not work (value will be this). Instead you encode the & like this: ?value=this%26that. See: https://en.wikipedia.org/wiki/Percent-encoding - the # is encoded as %23

I don't know which language you use, but it's available in basically every language.

@m90 m90 added the support Support Requests label Dec 21, 2021
@danielmbrown603
Copy link
Author

Ok, I think I understand. I’m Just deploying this as is via docker-compose and trying to configure email notifications.

I’ll try again after I update docker-compose, otherwise I’ll revert back to the legacy email method.

thank you!

@danielmbrown603
Copy link
Author

I can't figure it out, I'll keep googling. I did upgrade docker-compose and my previous layout doesn't work either.

The problem I see is I am using a gmail account, so my username contains @gmail.com and my password has a # and & symbol. Seems like docker will not pass those special characters from the env file.

You can close this, its a skillset issue on my part, not an issue with your code.

Thanks again.

@m90
Copy link
Member

m90 commented Dec 22, 2021

Maybe you can use this tool to generate your URL: containrrr/shoutrrr#103 (comment)

@danielmbrown603
Copy link
Author

Got it!
I URL encoded my username and password with this https://www.urlencoder.org/
One issue, is I also encoded the ':' between username:password, and that stumped me for awhile. All good now. Thank you

@m90 m90 closed this as completed Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Support Requests
Projects
None yet
Development

No branches or pull requests

2 participants