diff --git a/src/app/utils/subscribe/invite/invite.component.html b/src/app/utils/subscribe/invite/invite.component.html
index 3b7318f..5d537d0 100644
--- a/src/app/utils/subscribe/invite/invite.component.html
+++ b/src/app/utils/subscribe/invite/invite.component.html
@@ -9,7 +9,8 @@
{{missingCommunityId}}
-
+ {{successfulSentMessage}}
+ {{inviteErrorMessage}}
- {{successfulSentMessage}}
- {{inviteErrorMessage}}
+
diff --git a/src/app/utils/subscribe/invite/invite.component.ts b/src/app/utils/subscribe/invite/invite.component.ts
index 723f93f..ecb170d 100644
--- a/src/app/utils/subscribe/invite/invite.component.ts
+++ b/src/app/utils/subscribe/invite/invite.component.ts
@@ -1,4 +1,4 @@
-import {Component, OnInit, Input, ElementRef} from '@angular/core';
+import {Component, OnInit, Input, ElementRef} from '@angular/core';
import {SimpleChanges, OnChanges} from '@angular/core';
import {FormGroup, FormArray, FormBuilder, Validators} from "@angular/forms";
import {ActivatedRoute, Router} from '@angular/router';
@@ -118,7 +118,7 @@ export class InviteComponent implements OnInit {
this.composeEmail();
console.log(this.email.body);
- this._emailService.sendEmail(this.properties.sendMailUrl, this.email).subscribe(
+ this._emailService.sendEmail(this.properties.adminToolsAPIURL + "/sendMail/", this.email).subscribe(
res => {
console.log("The email has been sent successfully!");
this.status = this.errorCodes.DONE;
@@ -136,7 +136,6 @@ export class InviteComponent implements OnInit {
error => {
console.log(error);
this.status = this.errorCodes.DONE;
- //this.errorMessage = "gdgd";//inviteErrorMessage
this.inviteErrorMessage = "There was an error sending emails. Please try again.";
}
);
diff --git a/src/assets/env-properties.json b/src/assets/env-properties.json
index 877153a..91cf7fd 100644
--- a/src/assets/env-properties.json
+++ b/src/assets/env-properties.json
@@ -104,9 +104,8 @@
"searchLinkToAdvancedOrganizations" : "/search/advanced/organizations",
"searchLinkToAdvancedPeople" : "/search/advanced/people",
- "sendMailUrl": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/sendMail/",
"notifyForNewManagers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewManagers/",
- "notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
+ "notifyForNewSubscribers": "http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/",
"lastIndexInformationLink" : "https://www.openaire.eu/aggregation-and-content-provision-workflows",
"showLastIndexInformationLink" : true,