No notification by email

Hey :slight_smile:

I have try many settings to have the notifications by mail.

That not work.

I have a home server, Vikunja (docker) run on it.

I had try:

VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
      VIKUNJA_MAILER_ENABLED: 1
      VIKUNJA_MAILER_FORCESSL: 1
      VIKUNJA_MAILER_HOST: smtp.gmail.com
      VIKUNJA_MAILER_PORT: 465
      VIKUNJA_MAILER_USERNAME: example@gmail.com
      VIKUNJA_MAILER_PASSWORD: password
VIKUNJA_MAILER_ENABLED: true
  VIKUNJA_MAILER_FORCESSL: false
  VIKUNJA_MAILER_AUTHTYPE: plain
  VIKUNJA_MAILER_FROMEMAIL: [same as username]
  VIKUNJA_MAILER_HOST: send.one.com
  VIKUNJA_MAILER_PORT: 587

and

VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_FORCESSL: 0
VIKUNJA_MAILER_PORT: 587
VIKUNJA_MAILER_AUTHTYPE: plain
VIKUNJA_MAILER_HOST: [smtp.gmail.com]

Can you help me because I really want this feature :slight_smile:

Have a nice day, take care about you :wink:

Does it work with the vikunja testmail command?

Hey,

I don’t know what is the command kolaente.

I had try now:

VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
VIKUNJA_MAILER_ENABLED: 0
VIKUNJA_MAILER_FORCESSL: 1
VIKUNJA_MAILER_HOST: smtp.gmail.com
VIKUNJA_MAILER_PORT: 587
VIKUNJA_MAILER_USERNAME: xxxxx@gmail.com
VIKUNJA_MAILER_PASSWORD: xxxxxxx
VIKUNJA_MAILER_AUTHTYPE: plain

Not work :grin:

It’s a command to test if the api is properly configured to send mails. Check it out in the docs: CLI | Vikunja

To run it in docker, the full command would look something like this:

docker exec <name of the vikunja api container> /app/vikunja/vikunja testmail you@email.com
2 Likes

Thank you for sharing knowledge.

I’m trying now.

The result:

2022/12/15 22:00:04 No config file found, using default or config from environment variables.
2022-12-15T22:00:04.780292619Z: INFO :arrow_forward: cmd/func10 001 Sending testmail…
2022-12-15T22:00:05.263767687Z: ERROR :arrow_forward: cmd/func10 002 Error sending test mail: dial failed: SMTP AUTH failed: 535 5.7.8 Username and Password not accepted. Learn more at
5.7.8 Check Gmail through other email platforms - Gmail Help b13-20020a05600003cd00b0024cb961b6aesm460405wrg.104 - gsmtp

I had search how to solve this issue and I have discovered this article. I think I’m in the right way, no? Less Secure Apps

Okay, great! It’s work!

I’m just following this video:

If that can help:
GOogle don’t like the “original” password for Less Secure Apps.

Then, you need to create a “fake password” (I explain like I think :slight_smile: ) like in the video.

How I have set the mail in the docker-compose:

  VIKUNJA_SERVICE_ENABLETASKATTACHMENTS: 1
  VIKUNJA_SERVICE_ENABLEREGISTRATION: 0
  VIKUNJA_SERVICE_ENABLEEMAILREMINDERS: 1
  VIKUNJA_MAILER_ENABLED: 1
  VIKUNJA_MAILER_FORCESSL: 1
  VIKUNJA_MAILER_HOST: smtp.gmail.com
  VIKUNJA_MAILER_PORT: 587
  VIKUNJA_MAILER_USERNAME: xxxxxx@gmail.com
  VIKUNJA_MAILER_PASSWORD: password.app.like.the.video

Thank you very much for your precious hint @kolaente

It’s great, I love notification like that.

Have a nice day and thank you very much again!

2 Likes

Glad you figured it out!

1 Like

Thank’s for support!

thanks so much for sharing this. i had no idea about creating app password for using email notification.

That work fine now?
I’m happy for you if that can help!
Have a nice day!