Could be what I want to do is totally Impossible but I am a newbie so please understand, thanks.
Basically as you can see in my code, that replyTo and subject have a variable from where the information will be pulled from rather than plain text. I would like to know if there is any way I can do that to the from field. I want it to pull the information from the email name input like the subject does but haven't found a way. Cam anyone tell me if there is a way of achieving that?
Thank you guys.
let mailOptions = {
from: `sender <sender@example.com>`,
to: 'me@gmail.com',
replyTo: `<${req.body.Email}>`,
subject: `${req.body.fname} ${req.body.lname} requested a quote`,
text: 'Hello world?',
html: output
};