Fix email's subject and body
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@53950 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
55bcf14b29
commit
02c945117e
|
@ -114,7 +114,7 @@ export class SubscribeComponent {
|
|||
if(!this.subscribed){
|
||||
this.subscribed = true;
|
||||
this.composeEmailToInformManagers(this.community.title, this.communityId, this.community.managers);
|
||||
this._emailService.sendEmail("http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/"+ this.communityId, this.composeEmailToInformManagers(this.community.title, this.communityId, this.community.managers)).subscribe(
|
||||
this._emailService.sendEmail("http://duffy.di.uoa.gr:8080/uoa-admin-tools/notifyForNewSubscribers/"+ this.communityId, this.composeEmailToInformManagers(this.community.title, this.communityId, this.community.managers)).subscribe(
|
||||
res => {
|
||||
console.log("The email has been sent successfully!")
|
||||
},
|
||||
|
@ -128,16 +128,18 @@ export class SubscribeComponent {
|
|||
|
||||
// TODO find the right place to write it
|
||||
composeEmailToInformManagers(communityName: string, communityId: string, managers: any): Email {
|
||||
this.emailToInformManagers.subject = "[OpenAIRE-Connect] " + communityName + ": Managers";
|
||||
this.emailToInformManagers.body = "<p>You are receiving this e-mail as you were assigned as manager of the community <a href='https://beta."
|
||||
+ communityId + ".openaire.eu/'>" + communityName + "</a> dashboard. "
|
||||
+ "In order to access the administration section of your community you must first login using one of the available options. "
|
||||
+ "<br>The administrative rights are associated to the e-mail address, that was used to send you this message."
|
||||
+ " If you login with an account associated to a different email, please <a href='mailto:helpdesk@openaire.eu'>contact us</a>"
|
||||
+ " or your colleagues, that already have access to the administration tool, to update your e-mail. <br>"
|
||||
+ "You can access the administration tool by clicking the \"Manage\" button that will be available in the top right corner of the dashboard."
|
||||
+ "</p><br><br>"
|
||||
+ "OpenAIRE team<br>" + "<a href='https://www.openaire.eu'>www.openaire.eu</a>";
|
||||
this.emailToInformManagers.subject = "[OpenAIRE-Connect] " + communityName + ": New subscriber notification";
|
||||
this.emailToInformManagers.body = "<p>There is a new subscriber for \"" + communityName + "\" community. Click "
|
||||
+ "<a href='https://beta.admin.connect.openaire.eu/manage-subscribers?communityId="
|
||||
+ communityId + "'>here</a> to manage the subscibers list. </p>"
|
||||
+ "<p>OpenAIRE team<br> <a href='https://www.openaire.eu/'>www.openaire.eu</a></p>"
|
||||
+ "<p style='font-size:11px;'>You are receiving this e-mail as manager of the community "
|
||||
+ "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. "
|
||||
+ "If you are not responsible for this community, please "
|
||||
+ "<a href='mailto:openaire.test@gmail.com'>contact us</a>."
|
||||
+ "<br>"
|
||||
+ "Click <a href='https://beta.admin.connect.openaire.eu/manage-user-notifications?communityId=" + communityId
|
||||
+ "'>here</a> to manage your notification settings. </p>";
|
||||
|
||||
this.emailToInformManagers.recipients = managers;
|
||||
console.log(this.emailToInformManagers);
|
||||
|
|
Loading…
Reference in New Issue