PDA

View Full Version : Attaching file to an email if exists


Shiamak
09-06-2013, 01:00 PM
Is there a way to attach a file to email only if it exists? I know this is perhaps child's play in VBP but still wanted to ask :-)

kinook
09-06-2013, 06:35 PM
Use something like this in the Attachments field:[vbld_IIf(vbld_FSO.FileExists("%FILENAME%"), "%FILENAME%", "")]
http://kinook.com/VisBuildPro/Manual/scriptexpressions.htm
http://kinook.com/VisBuildPro/Manual/sysscriptfile.htm
http://kinook.com/VisBuildPro/Manual/sysscriptmisc.htm