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

SMTP - Email as Username Not Working #103

Closed
andrew-from-toronto opened this issue Dec 22, 2020 · 2 comments
Closed

SMTP - Email as Username Not Working #103

andrew-from-toronto opened this issue Dec 22, 2020 · 2 comments

Comments

@andrew-from-toronto
Copy link

I am trying to use shotrrr via the scrutiny project to send notifications over SMTP. Problem I am having is that my SMTP provider Mailgun issues usernames as an email address. However it seems that due to the format and my username having an @ symbol in it something is not working correctly. Here's the issue on that project: AnalogJ/scrutiny#129

Let me know if I can provide any more information here, thanks.

@piksel
Copy link
Member

piksel commented Dec 22, 2020

The @-symbol need to be URL-escaped. You can use shoutrrr generate to have it do this for you:

$ shoutrrr generate smtp
Generating URL for smtp using basic generator
Enter the configuration values as prompted
Host: senderhost.com
Username: [email protected]
Password: pass
Port[25]:
FromAddress: [email protected]
FromName: Mailbot
ToAddresses: [email protected]
Subject[Shoutrrr Notification]:
Auth: Plain
Encryption[Auto]:
UseStartTLS[Yes]:
UseHTML[No]:

URL: smtp://user%40mailhost.com:[email protected]:25/?auth=Plain&encryption=Auto&[email protected]&fromname=Mailbot&starttls=Yes&subject=Shoutrrr Notification&[email protected]&usehtml=No

Or, you can just simply replace the @ in your username with %40. 😁

@andrew-from-toronto
Copy link
Author

Thanks, I did try that actually without luck. That said, trying again today I did get things to work so not really sure what I did differently lol. Either way, thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants