Thanks for the message.
This is what I have now:
@echo off & setlocal
:: collection of attachments - what are their names? assuming company_cust#
:: file containing targets and attachments if any
for /f "tokens=1-3 delims=," %%a in (%mainlist%) do if "%%c" neq "" call :blat %%b %%c
echo Blat.exe C:\Users\rick\Desktop\blat3216\full\Messagebody.txt -to %1 -attach %atts%\%2
This doesn't do anything.
I have tested blat - and it's working from my computer.
Does it matter that Blat.exe is in the SYSTEM32 folder?
Can you see anything wrong with the above?
Just so you know - here is a sample of what is in myfile.csv
CustomerCode EmailAddress Attachment
C102676 firstname.lastname@example.org TEST_C102676.csv
C102678 email@example.com TEST_C102678.csv
In Messagebody.txt all i have in there is:
this is a test message body
Within the directory: C:\Users\rick\Desktop\blat3216\full\tosend is the following files: