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: 6038
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: 6038
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: 6038
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: 6038
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
 
CobraC081375
Newbie
Newbie
Avatar

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 23 April 2020 at 12:58am | IP Logged Quote CobraC081375

anyone fix this yet? ive tried everything suggested and still not working
Back to Top View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 23 April 2020 at 1:11am | IP Logged Quote Igor

CobraC081375, what kind of error are you getting? Anything relevant in debug logs?

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

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 23 April 2020 at 3:24am | IP Logged Quote CobraC081375

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 View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 23 April 2020 at 6:05am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
CobraC081375
Newbie
Newbie
Avatar

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 23 April 2020 at 8:42am | IP Logged Quote CobraC081375

Installation 1 debug

[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 View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 24 April 2020 at 1:07am | IP Logged Quote Igor

Did you try performing the configuration as instructed by the following documentation page?

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 View Igor's Profile Search for other posts by Igor
 
CobraC081375
Newbie
Newbie
Avatar

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 24 April 2020 at 3:43pm | IP Logged Quote CobraC081375

yep i tried both...mail and smtp

Back to Top View CobraC081375's Profile Search for other posts by CobraC081375
 
CobraC081375
Newbie
Newbie
Avatar

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 24 April 2020 at 4:03pm | IP Logged Quote CobraC081375

i tested mail to make sure its working using this script and was able to receive mail to my gmail account.

############### 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 View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 28 April 2020 at 5:29am | IP Logged Quote Igor

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.

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

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 28 April 2020 at 12:49pm | IP Logged Quote CobraC081375

ok cool. version i have is the latest release currently. I'll wait for the new release and try that one too.
Back to Top View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 29 April 2020 at 1:08am | IP Logged Quote Igor

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.

--
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: 6038
Posted: 07 May 2020 at 2:21am | IP Logged Quote Igor

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!

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

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 07 May 2020 at 3:09pm | IP Logged Quote CobraC081375

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.
Back to Top View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 08 May 2020 at 12:47am | IP Logged Quote Igor

Interesting. Can you try adding the following line:

Code:
$oMail->SMTPSecure = "ssl";

right after:
Code:
$oMail->isSMTP();

in modules/InvitationLinkWebclient/Module.php file, and see if that works for port 465? Thank you.

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

Joined: 23 April 2020
Location: United States
Online Status: Offline
Posts: 8
Posted: 08 May 2020 at 7:30pm | IP Logged Quote CobraC081375

worked like a charm!!!

tytyty!!!
Back to Top View CobraC081375's Profile Search for other posts by CobraC081375
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 12 May 2020 at 12:29am | IP Logged Quote Igor

OK thank you, I've asked the developers to add such a configuration setting in the next update of the product.

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