Hi,
I'm trying to send email in RTC with attachment. The code works fine when running in RTC on the NAV server itself. However if I run it from different client PC (RTC) it does not work and the attachment cannot be found. I’ve tried different options using UPLOAD or UPLOADSTREAM functions etc. This would work but then the NAV shows prompt for the file name which I don’t want. I know if I save the file in the TEMP folder then the prompt will not be displayed but the files are stored on the share drive only. How can I do this in NAV?
SMTP.AddAttachment('\\UNCserver-FS1\Files\20081216105812.pdf');
SMTP.Send;
Thanks,
0