PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → How to empty the EmailAttachment..content ?
How to empty the EmailAttachment..content ?
Iniciado por guest, 23,jul. 2018 13:27 - 4 respuestas
Publicado el 23,julio 2018 - 13:27
Hi,

I have a procedure which should send some dozens of e-Mails to as many receivers and a different .pdf document accompanying each mail. Everything works fine, only the EmailAttachment..content = floadBuffer(MyPathAndFile) lets me not reset its content before adding another PDF document. So, the content grows and grows, one PDF is added to the previous one and so on. I used ..content = "" but that doesn't work. Any idea which command / constant / value could work to reset it?
Publicado el 23,julio 2018 - 13:38
Hi Guenter

try with the variableReset (or resetvariable, can't remember) function

Best regards
Publicado el 23,julio 2018 - 14:39
Hi Guenter,
i use EmailReset() function.
Publicado el 23,julio 2018 - 15:39
Hi Giovanni, thank you! Yes, eMailReset(MyEmail) did the trick!
Publicado el 23,julio 2018 - 15:45
Hi Fabrice,

thanks, yes, there is VariableReset(MyCompositeVariable). I didn't try, because EmailReset(MyEmail) seems to be more appropriate to the case. But one should keep an eye on VariableReset(..) as a multipurpose command though.