You need to use the following code in your batch file to send email with the help of it:
Code:
set EMAILFILE=%WD_TASKDIR%\..\System.Mail\Out\%WD_CONFIG%_%WD_CUREVT%.TMP
echo this is the subject > "%EMAILFILE%"
echo Techon^<t.doe@techarena.com^>;t.does^<t.does@techarena.com^> >> "%EMAILFILE%"
echo. >> "%EMAILFILE%"
echo ^<techono@techarena.com^> >> "%EMAILFILE%"
echo %WD_FILE_SHORTPATH% >> "%EMAILFILE%"
echo pecunia non olet >> "%EMAILFILE%"
echo Dear mam , >> "%EMAILFILE%"
echo Please find attached the file %WD_FILE_N% >> "%EMAILFILE%"
echo best regards, >> "%EMAILFILE%"
echo %COMPUTERNAME% >> "%EMAILFILE%"
rem okay, the script is created, now rename it so the wdPostMan program processes it.
ren "%EMAILFILE%" %WD_CONFIG%_%WD_CUREVT%.wdmail
Bookmarks