From 71453e7e53e2385203b77b6d087295d982f4b7c0 Mon Sep 17 00:00:00 2001 From: Priyatham Sai Chand Date: Tue, 26 Oct 2021 13:44:19 +0530 Subject: [PATCH] fix/dialog box name --- src/BulkEmail.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/BulkEmail.js b/src/BulkEmail.js index 04eb494..54c119e 100644 --- a/src/BulkEmail.js +++ b/src/BulkEmail.js @@ -38,6 +38,7 @@ const EmailTemplate = () => { if (subject == "") { notifyPopup("error","subject empty","danger"); } if (html == "") { notifyPopup("error","html empty","danger"); } if (sender_email == "") { notifyPopup("error","sender email empty","danger"); } + console.log("emails "+emailarray) console.log("names "+namearray) console.log("html "+typeof(html)) @@ -53,11 +54,13 @@ const EmailTemplate = () => { "senderemail": sender_email }), }) - .then((res) => res.json()) + //.then((res) => res.json()) .then((result) => { console.log(result); - notifyPopup("error",result.toString(),"success"); + notifyPopup("Success",result.toString(),"success"); }); + + } return ( <> @@ -70,14 +73,14 @@ const EmailTemplate = () => {

Enter Email's

-
xyz@gmail.com,xxyyzz@cantileverlabs.com
+
xyz@gmail.com,xxyyzz@gmail.com
@@ -105,7 +108,7 @@ const EmailTemplate = () => { cols="50" type="text" className="input" - placeholder="xyz verma,xyz sharma , jhon doe" + placeholder="xyz verma,xyz sharma , john doe" onChange={(e) => setName(e.target.value)} name="name" >