Files
Facilitor/CUST/PCHW/export/sendmail.vbs
Arthur Egberink 102e561ab4 FSN#37813 -- Implementatie PCHW Gemeente Westland
svn path=/Website/branches/v2016.3/; revision=33869
2017-05-16 11:25:20 +00:00

20 lines
732 B
Plaintext

Dim fso, folder, files
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder("d:\Apps\Facilitor\Fplace5i\CUST\PCHW\export\EXACT")
Set files = folder.Files
For each folderIdx In files
If InStrRev(folderIdx.Name, ".xml") > 0 Then
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "no_reply@pchw.facilitor.nl"
objEmail.To = "fa@pch-dienstengroep.nl"
objEmail.Subject = "Facilitor: Bestand met inkoopfacturen Westland"
objEmail.Textbody = "Automatisch verzonden bestand van geexporteerde facturen."
objEmail.AddAttachment "d:\Apps\Facilitor\Fplace5i\CUST\PCHW\export\EXACT\" + folderIdx.Name
objEmail.Send
End If
Next