Open SebastianZitzl opened 8 years ago
mailsend itself does not support wildcard yet. You've to write a script to figure out the filename and call mailsend.
Thanks.
Thank you, here´s my working code:
@echo off
for /f %%i in ('dir /b /s /a-d "Path_to_file*.tif"') do set "filevariable=%%~ni"
mailsend.exe -to xyz@domain.com -cc xyz@domain.com -from zyx@domain.com -ssl -port 465 -auth -smtp smtp.domain.com -sub Subject -user zyx@domain.com -pass password -attach >"Path_to_file\%filevariable%.tif"
Hi,
i´m new to mailsend and i want to attach a file, which has an individual name every time it is created. I tried * and *.extension but nothing worked. Can you help me?
Thank you.