# No notification by email

**URL:** <https://community.vikunja.io/t/no-notification-by-email/1023>\
**Category:** Uncategorized\
**Created:** [15 December 2022 12:31 UTC](https://community.vikunja.io/t/no-notification-by-email/1023 "2022-12-15T12:31:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [15 December 2022 12:31 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/1 "2022-12-15T12:31:58Z")

</div>

Hey 🙂

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:

```auto
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

```

```auto
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](http://smtp.gmail.com)]

Can you help me because I really want this feature 🙂

Have a nice day, take care about you 😉

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [15 December 2022 12:57 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/2 "2022-12-15T12:57:14Z")

</div>

Does it work with the `vikunja testmail` command?

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [15 December 2022 12:59 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/3 "2022-12-15T12:59:01Z")

</div>

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](http://smtp.gmail.com)  
VIKUNJA\_MAILER\_PORT: 587  
VIKUNJA\_MAILER\_USERNAME: [xxxxx@gmail.com](mailto:xxxxx@gmail.com)  
VIKUNJA\_MAILER\_PASSWORD: xxxxxxx  
VIKUNJA\_MAILER\_AUTHTYPE: plain

Not work 😁

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [15 December 2022 21:35 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/4 "2022-12-15T21:35:18Z")

</div>

It’s a command to test if the api is properly configured to send mails. Check it out in the docs: [CLI | Vikunja](https://vikunja.io/docs/cli/#testmail)

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

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

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [15 December 2022 21:57 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/5 "2022-12-15T21:57:29Z")

</div>

Thank you for sharing knowledge.

I’m trying now.

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [15 December 2022 22:00 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/6 "2022-12-15T22:00:53Z")

</div>

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 ▶ cmd/func10 001 Sending testmail…  
2022-12-15T22:00:05.263767687Z: ERROR ▶ 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](https://support.google.com/mail/?p=BadCredentials) 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**

> **[Google Error - 535-5.7.8 Username and Password not accepted.](https://help.warmupinbox.com/en/articles/5445728-google-error-535-5-7-8-username-and-password-not-accepted)**
>
> If you receive this error when attempting to connect your inbox to the platform, learn how you can resolve it.

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [15 December 2022 22:16 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/7 "2022-12-15T22:16:43Z")

</div>

Okay, great! It’s work!

I’m just following this video:

[![](https://img.youtube.com/vi/IWxwWFTlTUQ/maxresdefault.jpg "🛑535-5.7.8 Username and Password not accepted | Gmail Allow Less Secure Apps removed | SMTP Error") ](https://www.youtube.com/watch?v=IWxwWFTlTUQ)

**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 🙂 ) 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!

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [16 December 2022 09:10 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/8 "2022-12-16T09:10:22Z")

</div>

Glad you figured it out!

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [16 December 2022 20:25 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/9 "2022-12-16T20:25:35Z")

</div>

Thank’s for support!

---

<div class="post-metadata">

**Author:** ![febosid203](https://community.vikunja.io/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@febosid203](https://community.vikunja.io/u/febosid203)\
**Post date:** [8 March 2024 04:02 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/10 "2024-03-08T04:02:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zarevskaya](https://community.vikunja.io/user_avatar/community.vikunja.io/zarevskaya/32/538_2.png) [@zarevskaya](https://community.vikunja.io/u/zarevskaya)\
**Post date:** [8 March 2024 18:50 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/11 "2024-03-08T18:50:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AlexKalopsia](https://community.vikunja.io/user_avatar/community.vikunja.io/alexkalopsia/32/1450_2.png) [@AlexKalopsia](https://community.vikunja.io/u/AlexKalopsia)\
**Post date:** [24 January 2025 15:52 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/12 "2025-01-24T15:52:24Z")

</div>

Hi, I am running in a weird issue now: the command takes a very long time to run, it eventually succeeds, but I actually receive no email.

```auto

2025-01-24T15:42:58Z: INFO ▶ 001 No config file found, using default or config from environment variables.
2025-01-24T15:42:58Z: INFO ▶ 002 Sending testmail...
2025-01-24T15:47:58Z: INFO ▶ 003 Testmail successfully sent.

```

my config

```auto
VIKUNJA_MAILER_ENABLED: 1
VIKUNJA_MAILER_HOST: ${SMTP_HOST}
VIKUNJA_MAILER_PORT: 465
VIKUNJA_MAILER_USERNAME: noreply@mydomain.com
VIKUNJA_MAILER_PASSWORD: ${SMTP_PSW}
VIKUNJA_MAILER_FROMEMAIL: noreply@mydomain.com

```

---

<div class="post-metadata">

**Author:** ![AlexKalopsia](https://community.vikunja.io/user_avatar/community.vikunja.io/alexkalopsia/32/1450_2.png) [@AlexKalopsia](https://community.vikunja.io/u/AlexKalopsia)\
**Post date:** [24 January 2025 15:58 UTC](https://community.vikunja.io/t/no-notification-by-email/1023/13 "2025-01-24T15:58:10Z")

</div>

Well, as usual, I found the solution as soon as I posted this. I also needed

`VIKUNJA_MAILER_FORCESSL: 1`
