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

[BUG] issues sending notifications from kanban board. - no notification is emailed #2196

Closed
as1029 opened this issue Jan 9, 2024 · 7 comments

Comments

@as1029
Copy link

as1029 commented Jan 9, 2024

Hi,
I upgraded to the new leantime yesterday 08 Jan 2024.
The new version look way better - thanks for all the hard work.

Help Please ?

I am having issues with sending notifications from kanban board. - no notification is emailed
( I am using SMTP and all was good on previous version of leantime.)

It appears that the SendMail $to variable is populated/set to the user id and not an email address

Best way so see this is to edit the file : /app/Core/Mailer.php

public function sendMail(array $to, $from): void     {                                                                                                                                                                       
  var_dump($to); exit();  \\ this shows and array with the value 1 [taggeduser id is 1]

if I [remove above dump] and put [circa line 370 in /app/Core/Mailer.php]

 $this->mailAgent->AltBody = $altBody;                                                                                                                               
  $to = array('as@pick.co.za');                         
  if (is_array($to)) {

then all works fine and email is sent

Probably comes from :

../Leantime/app/Domain/Notifications/Services/Notifications.php:156:


   $mailer->sendMail(array($taggedUser), $authorName); 

Anyways, hope you able to find issue and fix.. If not, how do I change tagged-user-id into email address? (what function so I am not messing with your code structure)?

Keep up the great work - it is an awesome system

regards

Andy

@fabiorino
Copy link
Contributor

fabiorino commented Jan 13, 2024

I have the same issue. Hope this will be prioritised because being unable to send emails is a big problem. I'm running Leantime 2.4.8, self hosted.

@marcelfolaron
Copy link
Contributor

I assume that you all are using ldap then?

@fabiorino
Copy link
Contributor

I'm using Google OIDC.

@as1029
Copy link
Author

as1029 commented Jan 19, 2024 via email

@marcelfolaron
Copy link
Contributor

This is now fixed in 3.0.5

@fabiorino
Copy link
Contributor

Hi, this doesn't appear to be fixed. I'm running Leantime 3.0.7 and the issue is still occurring: the TO field doesn't contain an email address but rather the numeric ID of the user that the email is supposed to be sent to.

I've enabled debugging, and I can see the following log:

[09-Mar-2024 19:44:23 Europe/Rome] 4 Invalid address: (to): 8.

8 is the ID of the user the email was supposed to be sent to.

@as1029
Copy link
Author

as1029 commented Mar 26, 2024 via email

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

3 participants