Hi,
I use this code to send an email with the following fields form my database.
I would to add (attach) to the sent email, the file that is located in my field “photo” from my database.
Can someone prompt me i the right direction to do this
Thank you
Pierre
function sendFormData() {
const subject = `Demande accès au site exIBMistes Québec`;
const body = `Nom: ${$w("#input7").value}
\rPrénom: ${$w("#input6").value}
\rRéférence IBM: ${$w("#input12").value}
\rCourriel: ${$w("#input3").value}
\rDernier poste chez IBM: ${$w("#input4").value}
\rNombre année IBM: ${$w("#input11").value}
\rAnnée de départ IBM: ${$w("#input5").value}
\rLieu actuel: ${$w("#input8").value}
\rphotoOuiNon: ${$w("#dropdown1").value}`;
sendEmail(subject, body)
.then(response => console.log(response));
}