MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / sendEmail

Function sendEmail

apps/OpenSign/src/components/pdf/EmailComponent.jsx:30–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29 //function for send email
30 const sendEmail = async () => {
31 setIsLoading(true);
32 const params = { docId: pdfDetails?.[0]?.objectId, recipients: emailList };
33 const sendmail = await Parse.Cloud.run("forwarddoc", params);
34 if (sendmail?.status === "success") {
35 setSuccessEmail(true);
36 setIsEmail(false);
37 setTimeout(() => {
38 setSuccessEmail(false);
39 setEmailValue("");
40 setEmailList([]);
41 }, 1500);
42 setIsLoading(false);
43 }
44 else {
45 setIsLoading(false);
46 setIsEmail(false);
47 setIsAlert({
48 isShow: true,
49 alertMessage: t("something-went-wrong-mssg")
50 });
51 setEmailValue("");
52 setEmailList([]);
53 }
54 };
55
56 //function for remove email
57 const removeChip = (index) => {

Callers 1

EmailComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected