@ankurssj
Hey not sure if you've figured this out or not but I have figured out the backend portion. I'm sure to wire up using attachments with the frontend will require multer to handle file requests and potentially something like Cloudinary for storing & creating urls for the attachments.
For now, here is the backend with images/files saved directly within the server project.
Essentially, you need to create an array of attachment objects (here I named mine attachmentItems) and then create an attachment key within the mailOptions object and its value is the returned result of mapping the attachmentItems.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
@ankurssj Hey not sure if you've figured this out or not but I have figured out the backend portion. I'm sure to wire up using attachments with the frontend will require multer to handle file requests and potentially something like Cloudinary for storing & creating urls for the attachments.
For now, here is the backend with images/files saved directly within the server project.
Essentially, you need to create an array of attachment objects (here I named mine
attachmentItems
) and then create anattachment
key within themailOptions
object and its value is the returned result of mapping theattachmentItems
.