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

Can't send an e-mail through gmail SMTP #93

Open
eoprede opened this issue Jan 1, 2024 · 0 comments
Open

Can't send an e-mail through gmail SMTP #93

eoprede opened this issue Jan 1, 2024 · 0 comments

Comments

@eoprede
Copy link

eoprede commented Jan 1, 2024

Hello,
I'm trying to use the docker container and send e-mails from it via google's smtp. Something doesn't work and I can't quite figure out why, as the logs are non-descriptive:

time=2024-01-01T17:15:40.406Z level=INFO source=/go/src/github.com/ncarlier/webhookd/pkg/hook/job.go:101 msg="hook executed" hook=test2 id=1 status=success took=27201
time=2024-01-01T17:15:50.504Z level=ERROR source=/go/src/github.com/ncarlier/webhookd/pkg/notification/notifier.go:20 msg="unable to send notification" webhook=test2 id=1 err=EOF

The container is configured via ENV, here are the settings:

            - name: WHD_NOTIFICATION_URI
              value: "mailto:[email protected]?smtp=smtp.gmail.com:465&[email protected]&password=smpt_password&conn=tls-insecure&[email protected]"
            - name:  WHD_LOG_LEVEL
              value: debug
            - name: WHD_LOG_HOOK_OUTPUT
              value: "true"

The script is extremely basic:

#!/bin/bash

echo "notify: Hello World"

I can just install mailx or something similar and use shell script to send an e-mail, but ideally I would like to just keep using the native container.

Any suggestions on how to fix it or how to enable more logs? Thanks!

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

1 participant