Project

General

Profile

« Previous | Next » 

Revision 58891

[Library | Trunk]: Add subject to contact is form.

View differences:

composer.ts
51 51

  
52 52
  public static composeEmailForNewCommunity(contactForm: any, admins: any): Email {
53 53
    let email: Email = new Email();
54

  
55
    email.subject = "RCD: Request for new community";
54
  
55
    email.subject = "OpenAIRE Connect | " + contactForm.subject;
56 56
    email.body = "<div style='font-size:" + this.noteBodySize + "'>"
57 57
               + "<span><b>Name</b>: " + contactForm.name + "</span><br>"
58 58
               + "<span><b>Surname</b>: " + contactForm.surname + "</span><br>"
......
65 65
    return email;
66 66
  }
67 67
  
68
  public static composeEmailForNewStakeholder(contactForm: any, admins: any): Email {
69
    let email: Email = new Email();
70
    
71
    email.subject = "OpenAIRE Monitor | " + contactForm.subject;
72
    email.body = "<div style='font-size:" + this.noteBodySize + "'>"
73
      + "<span><b>Name</b>: " + contactForm.name + "</span><br>"
74
      + "<span><b>Surname</b>: " + contactForm.surname + "</span><br>"
75
      + "<span><b>Email</b>: " + contactForm.email + "</span><br>"
76
      + "<span><b>Affiliation</b>: " + contactForm.affiliation + "</span><br>"
77
      + "<span><b>Stakeholder Name</b>: " + contactForm.stakeholder + "</span>"
78
      + "<p>" + contactForm.message + "</p>"
79
      + "</div>";
80
    email.recipients = admins;
81
    return email;
82
  }
83
  
68 84
  public static composeEmailForFeedback(info: {name: string, url: string, email: string, issues: any[]}, recipients: string[]): Email {
69 85
    let email: Email = new Email();
70 86
    email.subject = 'Feedback report for ' + info.name;

Also available in: Unified diff