Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora Files

 AfterLogic Forum : AfterLogic Aurora Files
Subject Topic: Invitation Mail send error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Viaharo
Newbie
Newbie
Avatar

Joined: 27 April 2018
Location: United States
Online Status: Offline
Posts: 3
Posted: 27 April 2018 at 11:18am | IP Logged Quote Viaharo

Trying to get mail invite links to work.
Currently it just sets a red error modal when I click send.
I followed the config documents to switch it to smtp with our server details, but still now joy.

I turned on debug logging and this is the only error message that seems to show when I try and send an invite link.



Any ideas?

[18:10:07.37>[8c87c9e1> Aurora\System\Exceptions\ApiException: ApiException in /usr/share/aurora-files/system/Module/AbstractModule.php:868 Stack trace: #0 /usr/share/aurora-files/modules/Core/Module.php(534): Aurora\System\Module\AbstractModule->CallMethod('SendNotificatio...', Array, true) #1 [internal function>: Aurora\Modules\Core\Module->EntryApi() #2 /usr/share/aurora-files/system/Module/AbstractModule.php(619): call_user_func_array(Array, Array) #3 /usr/share/aurora-files/system/Module/Manager.php(689): Aurora\System\Module\AbstractModule->RunEntry('api') #4 /usr/share/aurora-files/system/Application.php(87): Aurora\System\Module\Manager->RunEntry('api') #5 /usr/share/aurora-files/index.php(21): Aurora\System\Application::Start() #6 {main}
Back to Top View Viaharo's Profile Search for other posts by Viaharo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5083
Posted: 28 April 2018 at 3:40am | IP Logged Quote Igor

Hello,

The issue is confirmed, developers will look into this.

Note that during my testing I've just performed, the link is successfully sent out on creating the user, even though the message says "invitation link wasn't sent". This will be looked into as well, of course.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Viaharo
Newbie
Newbie
Avatar

Joined: 27 April 2018
Location: United States
Online Status: Offline
Posts: 3
Posted: 30 April 2018 at 8:57am | IP Logged Quote Viaharo

I did verify that the invitation links are not being received by recipient addresses in our case, and also confirmed that the email server is not receiving a login attempt to send the smtp mail invite. Looks to be blowing up before it gets to that point. If that helps :-)
Back to Top View Viaharo's Profile Search for other posts by Viaharo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5083
Posted: 01 May 2018 at 4:15am | IP Logged Quote Igor

That's strange. I'm curious, did you set "NotificationType" to "smtp" in /data/settings/modules/InvitationLinkWebclient.config.json file? Without that, PHP function mail() is used and SMTP server settings are ignored.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Viaharo
Newbie
Newbie
Avatar

Joined: 27 April 2018
Location: United States
Online Status: Offline
Posts: 3
Posted: 01 May 2018 at 11:09am | IP Logged Quote Viaharo

Yup. Forgot it the first round, but corrected it to say smtp in the config.
Still got the exact same error message in the web gui, and in the server side debug log.
Decided to post here for help after I about went blind looking through configs trying to find out where it was blowing up :-)
Back to Top View Viaharo's Profile Search for other posts by Viaharo
 
jacekles
Newbie
Newbie


Joined: 08 June 2018
Location: Poland
Online Status: Offline
Posts: 1
Posted: 08 June 2018 at 5:32am | IP Logged Quote jacekles

There are many errors in file modules/InvitationLinkWebclient/Module.php

1) in line 353 is set fixed port number
              $oMail->Port = 25;
it should be
              $oMail->Port = $this->getConfig('NotificationPort', '');

in file data/settings/modules/InvitationLinkWebclient.config.json add (587 is port for my server)
     "NotificationPort": [
          "587",
          "string"
     ],


2) after line 358
                    $oMail->Password = $this->getConfig('NotificationPassword', '');
sometimes is required to specify smtp secure protocol (default is ssl)
                    $oMail->SMTPSecure = 'tls'; // example - for my server

3) if you use extended characters you must add
          $oMail->CharSet = 'utf-8';
before line 369
          $oMail->setFrom($sFrom);

4) in line 245 change from
                    $this->broadcastEvent(
                         'CreateInvitationLinkHash',
                         $aEventArgs
                    );

to

                    $this->broadcastEvent(
                         'CreateInvitationLinkHash',
                         $aEventArgs, $mResult
                    );

for correct result of sending email.
Back to Top View jacekles's Profile Search for other posts by jacekles
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5083
Posted: 08 June 2018 at 6:07am | IP Logged Quote Igor

Thank you jacekles, I've forwarded this information to the developers.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5083
Posted: 02 July 2018 at 4:10am | IP Logged Quote Igor

By the way, you're more than welcome to create a pull request in repository of this module. Thanks!

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide