async function SendMailv1(request) { console.log('in SendMailv1'); try { const recipient = request.params.email; const otp = request.params.otp; const res = await Parse.Cloud.sendEmail({ from: 'Test user' + ' <' + process.env.MAILGUN_SENDER + '>', recipient: recipient, subject: 'Your OpenSign™ OTP', text: 'This email is a test.', html: "

OTP Verification

Your OTP for OpenSign™ verification is:

" + otp + '

', // "

Hello,

Your OTP for LegaDaft verification .

76984

Thank You!
" }); console.log('Res'); console.log(res); return otp; } catch (err) { console.log('err in SendMailv1'); console.log(err); return err; } } export default SendMailv1;