From 4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877 Mon Sep 17 00:00:00 2001 From: Nassim Bounouas Date: Fri, 21 Jun 2019 08:49:35 +0200 Subject: Feature/subject in contact form (#1926) * #1915 Add a subject to contact form and add it to email sent * #1915 Add subject to contact form tests * #1915 Contact form test corrected && tslint correction --- shared/extra-utils/server/contact-form.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/extra-utils/server/contact-form.ts') diff --git a/shared/extra-utils/server/contact-form.ts b/shared/extra-utils/server/contact-form.ts index 80394cf99..e002e03dd 100644 --- a/shared/extra-utils/server/contact-form.ts +++ b/shared/extra-utils/server/contact-form.ts @@ -5,6 +5,7 @@ function sendContactForm (options: { url: string, fromEmail: string, fromName: string, + subject: string, body: string, expectedStatus?: number }) { @@ -13,6 +14,7 @@ function sendContactForm (options: { const body: ContactForm = { fromEmail: options.fromEmail, fromName: options.fromName, + subject: options.subject, body: options.body } return request(options.url) -- cgit v1.2.3