WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: esomma1 on June 04, 2022, 05:33:47 PM

Title: kSendFile
Post by: esomma1 on June 04, 2022, 05:33:47 PM
How do I use kSendFile with no attachment? Thanks!
Title: Re: kSendFile
Post by: JTaylor on June 04, 2022, 07:42:21 PM
Assuming I remember correctly, just use empty quotes.   

ret = kSendFile(subject,msgfile,"",flags)

Jim
Title: Re: kSendFile
Post by: esomma1 on June 06, 2022, 11:26:53 AM
Jim,

Thanks for responding so quickly! I had tried "" but it didn't work. Just by chance I found out that an "@" will send no attachment. Thanks again.

Eric
Title: Re: kSendFile
Post by: JTaylor on June 06, 2022, 01:15:57 PM
Odd.   I think that is what I do.   In any event, glad it is working.

Jim
Title: Re: kSendFile
Post by: td on June 06, 2022, 01:58:53 PM
FWIW, A simple empty string ("") in the "attachments" parameter works for me, as well.