diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.ts b/src/app/pages/community/community-edit-form/community-edit-form.component.ts index d3c2b62..a203084 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.ts +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -228,7 +228,7 @@ export class CommunityEditFormComponent implements OnInit{ } private sendMailToNewManagers(managers: any) { - this._emailService.sendEmail(this.properties.adminToolsAPIURL + '/sendMail/', + this._emailService.sendEmail(this.properties, Composer.composeEmailForNewManager(this.communityId, this.community.title, managers)).subscribe( res => { @@ -239,8 +239,8 @@ export class CommunityEditFormComponent implements OnInit{ } private informOldManagersForTheNewOnes() { - this._emailService.sendEmail( - this.properties.adminToolsAPIURL + '/notifyForNewManagers/' + this.communityId, + this._emailService.notifyForNewManagers( + this.properties, this.communityId, Composer.composeEmailToInformOldManagersForTheNewOnes(this.community.title, this.communityId, this.firstVersionOfManagers, this.community.managers)).subscribe(