I'm using the firebase trigger email extension to send mail to the site manager. In the inbox, I'm getting the mail but the same from-address as to-address but I need to give the user's mail address as from-address.
const email = req.body.email;
const name = req.body.name;
const text = req.body.text;
const subject = req.body.subject;
admin
.firestore()
.collection("mail")
.add({
from:email,
to: "sitemanager@gmail.com",
message: {
subject: subject,
html: "This is the <code>HTML</code> section of the email body.",
},
})
While configuring the extension is asking for default from email address.what should I give there