| Author |  | 
      
        | Viaharo Newbie
 
  
  
 Joined: 27 April 2018
 Location: United States
 Online Status: Offline
 Posts: 3
 | 
          Trying to get mail invite links to work.
           | Posted: 27 April 2018 at 11:18am | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Hello,
           | Posted: 28 April 2018 at 3:40am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Viaharo Newbie
 
  
  
 Joined: 27 April 2018
 Location: United States
 Online Status: Offline
 Posts: 3
 | 
          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 :-)
           | Posted: 30 April 2018 at 8:57am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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.
           | Posted: 01 May 2018 at 4:15am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Viaharo Newbie
 
  
  
 Joined: 27 April 2018
 Location: United States
 Online Status: Offline
 Posts: 3
 | 
          Yup. Forgot it the first round, but corrected it to say smtp in the config.
           | Posted: 01 May 2018 at 11:09am | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | jacekles Newbie
 
  
 
 Joined: 08 June 2018
 Location: Poland
 Online Status: Offline
 Posts: 1
 | 
          There are many errors in file modules/InvitationLinkWebclient/Module.php
           | Posted: 08 June 2018 at 5:32am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Thank you jacekles, I've forwarded this information to the developers.
           | Posted: 08 June 2018 at 6:07am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          By the way, you're more than welcome to create a pull request in repository of this module. Thanks!
           | Posted: 02 July 2018 at 4:10am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          anyone fix this yet?  ive tried everything suggested and still not working
           | Posted: 23 April 2020 at 12:58am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          CobraC081375, what kind of error are you getting? Anything relevant in debug logs?
           | Posted: 23 April 2020 at 1:11am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          
           | Posted: 23 April 2020 at 3:24am | IP Logged |   |  
           | 
 |  
| Igor wrote: 
 
    
    | 
      
       | CobraC081375, what kind of error are you getting? Anything relevant in debug logs? 
 --
 Regards,
 Igor, Afterlogic Support
 |  |  |  
 same thing as the original poster.  just red modale telling me error sending invitation email
 
 Ive got two installations of it aurora files goin cus i thought maybe i did something wrong
 
 1st Installation debug logs
 [10:22:01.62][3cae7277] [POST(4)][ip:174.207.7.99] /fileman/?/Api/
 [10:22:01.62][3cae7277] POST > [Module, Method, Parameters, TenantName]
 [10:22:01.62][3cae7277]
 [10:22:01.62][3cae7277] ApiException
 
 2nd Installation debug logs
 Debug logs:
 [08:14:10.15][1f65d2c1]  ===== API: InvitationLinkWebclient::GetInvitationLinkHash
 [08:14:10.18][1f65d2c1] @Time: 0.3855
 [08:14:10.18][1f65d2c1] @TimeApiInit: 0.3464
 [08:14:10.18][1f65d2c1] INFO[MEMORY]: Memory peak usage: 27MB
 [08:14:10.18][1f65d2c1] INFO[TIME]: Time delta: 1587629650.18
 [08:14:10.25][6d9285da] @Time: 0.2725
 [08:14:10.25][6d9285da] @TimeApiInit: 0.1516
 [08:14:10.25][6d9285da] INFO[MEMORY]: Memory peak usage: 27.25MB
 [08:14:10.25][6d9285da] INFO[TIME]: Time delta: 1587629650.25
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          
           | Posted: 23 April 2020 at 6:05am | IP Logged |   |  
           | 
 |  
| Quote: 
 
    
    | 
      
       | [10:22:01.62][3cae7277] ApiException |  |  |  
 To see what exactly is the exception, set LogStackTrace to true in data/settings/config.json file, reproduce the issue and check the logs.
 
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          Installation 1 debug
           | Posted: 23 April 2020 at 8:42am | IP Logged |   |  
           | 
 |  
 [15:41:04.51][f048a49f] [POST(4)][ip:174.207.7.99] /fileman/?/Api/
 [15:41:04.51][f048a49f] POST > [Module, Method, Parameters, TenantName]
 [15:41:04.51][f048a49f]
 [15:41:04.51][f048a49f] Aurora\System\Exceptions\ApiException: ApiException in /home1/msns130/public_html/fileman/system/Module/AbstractModule.php:810
 Stack trace:
 #0 /home1/msns130/public_html/fileman/modules/Core/Module.php(640): Aurora\System\Module\AbstractModule->CallMethod('SendNotificatio...', Array, true)
 #1 [internal function]: Aurora\Modules\Core\Module->EntryApi()
 #2 /home1/msns130/public_html/fileman/system/Router.php(108): call_user_func_array(Array, Array)
 #3 /home1/msns130/public_html/fileman/system/Module/Manager.php(615): Aurora\System\Router->route('api')
 #4 /home1/msns130/public_html/fileman/system/Application.php(137): Aurora\System\Module\Manager->RunEntry('api')
 #5 /home1/msns130/public_html/fileman/system/Application.php(108): Aurora\System\Application->Route('api')
 #6 /home1/msns130/public_html/fileman/index.php(21): Aurora\System\Application::Start()
 #7 {main}
 
 Next Aurora\System\Exceptions\ApiException: ApiException in /home1/msns130/public_html/fileman/system/Module/AbstractModule.php:873
 Stack trace:
 #0 /home1/msns130/public_html/fileman/modules/Core/Module.php(640): Aurora\System\Module\AbstractModule->CallMethod('SendNotificatio...', Array, true)
 #1 [internal function]: Aurora\Modules\Core\Module->EntryApi()
 #2 /home1/msns130/public_html/fileman/system/Router.php(108): call_user_func_array(Array, Array)
 #3 /home1/msns130/public_html/fileman/system/Module/Manager.php(615): Aurora\System\Router->route('api')
 #4 /home1/msns130/public_html/fileman/system/Application.php(137): Aurora\System\Module\Manager->RunEntry('api')
 #5 /home1/msns130/public_html/fileman/system/Application.php(108): Aurora\System\Application->Route('api')
 #6 /home1/msns130/public_html/fileman/index.php(21): Aurora\System\Application::Start()
 #7 {main}
 
 Install 2 debug
 [15:44:55.18][6d7ac132]  ===== API: InvitationLinkWebclient::SendNotification
 [15:44:55.18][6d7ac132] Aurora\System\Exceptions\ApiException: ApiException in /home1/msns130/public_html/fileman-original/system/Module/AbstractModule.php:810
 Stack trace:
 #0 /home1/msns130/public_html/fileman-original/modules/Core/Module.php(640): Aurora\System\Module\AbstractModule->CallMethod('SendNotificatio...', Array, true)
 #1 [internal function]: Aurora\Modules\Core\Module->EntryApi()
 #2 /home1/msns130/public_html/fileman-original/system/Router.php(108): call_user_func_array(Array, Array)
 #3 /home1/msns130/public_html/fileman-original/system/Module/Manager.php(615): Aurora\System\Router->route('api')
 #4 /home1/msns130/public_html/fileman-original/system/Application.php(137): Aurora\System\Module\Manager->RunEntry('api')
 #5 /home1/msns130/public_html/fileman-original/system/Application.php(108): Aurora\System\Application->Route('api')
 #6 /home1/msns130/public_html/fileman-original/index.php(21): Aurora\System\Application::Start()
 #7 {main}
 
 Next Aurora\System\Exceptions\ApiException: ApiException in /home1/msns130/public_html/fileman-original/system/Module/AbstractModule.php:873
 Stack trace:
 #0 /home1/msns130/public_html/fileman-original/modules/Core/Module.php(640): Aurora\System\Module\AbstractModule->CallMethod('SendNotificatio...', Array, true)
 #1 [internal function]: Aurora\Modules\Core\Module->EntryApi()
 #2 /home1/msns130/public_html/fileman-original/system/Router.php(108): call_user_func_array(Array, Array)
 #3 /home1/msns130/public_html/fileman-original/system/Module/Manager.php(615): Aurora\System\Router->route('api')
 #4 /home1/msns130/public_html/fileman-original/system/Application.php(137): Aurora\System\Module\Manager->RunEntry('api')
 #5 /home1/msns130/public_html/fileman-original/system/Application.php(108): Aurora\System\Application->Route('api')
 #6 /home1/msns130/public_html/fileman-original/index.php(21): Aurora\System\Application::Start()
 #7 {main}
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Did you try performing the configuration as instructed by the following documentation page?
           | Posted: 24 April 2020 at 1:07am | IP Logged |   |  
           | 
 |  
 Configuring sending of invitations via SMTP server
 
 By default, Aurora Files will attempt to send mail using standard mail() function on PHP, but it's rather environment-dependant so we recommend setting up sending mail via SMTP.
 
 If data/settings/modules/InvitationLinkWebclient.config.json file isn't there, try pressing "Update configuration" in Database Settings screen of admin interface.
 
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          yep i tried both...mail and smtp
           | Posted: 24 April 2020 at 3:43pm | IP Logged |   |  
           | 
 |  
 
   | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          i tested mail to make sure its working using this script and was able to receive mail to my gmail account.
           | Posted: 24 April 2020 at 4:03pm | IP Logged |   |  
           | 
 |  
 ############### Code
 
 <?
 
 // ---------------- SEND MAIL FORM ----------------
 
 // send e-mail to ...
 $to="me@localhost";
 
 // Your subject
 $subject="Test";
 
 // From
 $header="from: your name <your email>";
 
 // Your message
 $message="Hello \r\n";
 $message.="This is test\r\n";
 $message.="Test again ";
 
 // send email
 $sentmail = mail($to,$subject,$message,$header);
 
 // if your email succesfully sent
 if($sentmail){
 echo "Email Has Been Sent .";
 }
 else {
 echo "Cannot Send Email ";
 }
 
 ?>
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          OK, we're now working on releasing new version 8.3.18, once that's over with, I'll check this functionality and will get back to you. Meantime, would be great if you check whether the issue persists with the latest one as well.
           | Posted: 28 April 2020 at 5:29am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          ok cool.  version i have is the latest release currently.  I'll wait for the new release and try that one too.
           | Posted: 28 April 2020 at 12:49pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          I was able to reproduce the issue on my test installation, with the latest version. Have reported it to the developers, will post back here once there are any news on this. Thanks.
           | Posted: 29 April 2020 at 1:08am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          We've just released v8.3.19 of Aurora Files, the issue should no longer occur there. Please try the latest version and let us know if this works for you now. Thanks!
           | Posted: 07 May 2020 at 2:21am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          SWEET!! works now.  Only problem now is, it isnt allowing me to use ssl via port 465 with log in creds for sending mail for the invitation.  It will let me use the default port 25 and send mail link just fine though.
           | Posted: 07 May 2020 at 3:09pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Interesting. Can you try adding the following line:
           | Posted: 08 May 2020 at 12:47am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | $oMail->SMTPSecure = "ssl"; |  |  |  right after:
 
 in modules/InvitationLinkWebclient/Module.php file, and see if that works for port 465? Thank you.
 
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | CobraC081375 Newbie
 
  
  
 Joined: 23 April 2020
 Location: United States
 Online Status: Offline
 Posts: 8
 | 
          worked like a charm!!!
           | Posted: 08 May 2020 at 7:30pm | IP Logged |   |  
           | 
 |  
 tytyty!!!
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          OK thank you, I've asked the developers to add such a configuration setting in the next update of the product.
           | Posted: 12 May 2020 at 12:29am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, Afterlogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |