fix/dialog box name
This commit is contained in:
parent
200a07d977
commit
71453e7e53
|
@ -38,6 +38,7 @@ const EmailTemplate = () => {
|
||||||
if (subject == "") { notifyPopup("error","subject empty","danger"); }
|
if (subject == "") { notifyPopup("error","subject empty","danger"); }
|
||||||
if (html == "") { notifyPopup("error","html empty","danger"); }
|
if (html == "") { notifyPopup("error","html empty","danger"); }
|
||||||
if (sender_email == "") { notifyPopup("error","sender email empty","danger"); }
|
if (sender_email == "") { notifyPopup("error","sender email empty","danger"); }
|
||||||
|
|
||||||
console.log("emails "+emailarray)
|
console.log("emails "+emailarray)
|
||||||
console.log("names "+namearray)
|
console.log("names "+namearray)
|
||||||
console.log("html "+typeof(html))
|
console.log("html "+typeof(html))
|
||||||
|
@ -53,11 +54,13 @@ const EmailTemplate = () => {
|
||||||
"senderemail": sender_email
|
"senderemail": sender_email
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.then((res) => res.json())
|
//.then((res) => res.json())
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
console.log(result);
|
console.log(result);
|
||||||
notifyPopup("error",result.toString(),"success");
|
notifyPopup("Success",result.toString(),"success");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -70,14 +73,14 @@ const EmailTemplate = () => {
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-lg-6 col-md-6 col-sm-12 mx-auto">
|
<div className="col-lg-6 col-md-6 col-sm-12 mx-auto">
|
||||||
<h3>Enter Email's</h3>
|
<h3>Enter Email's</h3>
|
||||||
<h6>xyz@gmail.com,xxyyzz@cantileverlabs.com</h6>
|
<h6>xyz@gmail.com,xxyyzz@gmail.com</h6>
|
||||||
<textarea
|
<textarea
|
||||||
id="email"
|
id="email"
|
||||||
rows="10"
|
rows="10"
|
||||||
cols="50"
|
cols="50"
|
||||||
type="text"
|
type="text"
|
||||||
className="input"
|
className="input"
|
||||||
placeholder="xyz@gmail.com,xxyyzz@cantileverlabs.com"
|
placeholder="xyz@gmail.com,xxyyzz@gmail.com"
|
||||||
name="email"
|
name="email"
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
></textarea>
|
></textarea>
|
||||||
|
@ -105,7 +108,7 @@ const EmailTemplate = () => {
|
||||||
cols="50"
|
cols="50"
|
||||||
type="text"
|
type="text"
|
||||||
className="input"
|
className="input"
|
||||||
placeholder="xyz verma,xyz sharma , jhon doe"
|
placeholder="xyz verma,xyz sharma , john doe"
|
||||||
onChange={(e) => setName(e.target.value)}
|
onChange={(e) => setName(e.target.value)}
|
||||||
name="name"
|
name="name"
|
||||||
></textarea>
|
></textarea>
|
||||||
|
|
Loading…
Reference in New Issue