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 = () => {