Forum Replies Created
Current batch file looks like this. If I remove the lines in bold the emails goes through no attachment though as I havent set the file. Once I add them though nothing happens
SwithMail.exe /s /x “D:\Switchmail\SwithMailSettings.xml” /a “D:\Report_Outbox\Custom Daily SYS Detail for %CURRENT_DATE%.pdf
Gotta be missing something . If I create copy the CLI commands and test from the GUI it goes through as a test.
When I update the bat file though and try to run it this is what i get
Current batch file has the following on it
SwithMail.exe /s /x “D:\SMTP Send Email\SwithMailv2210\SwithMailSettings.xml” /a “D:\Report_Outbox\Custom Daily SYS Detail for %CURRENT_DATE%.pdf”
It does search for the new file date name based on the string but no matter what I do it comes up with this error when I try to run the file from CMD
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\masteraccount>”D:\SMTP Send Email\SwithMailv2210\Daily Sales.bat”
C:\Users\masteraccount>SwithMail.exe /s /x “D:\SMTP Send Email\SwithMailv2210\Sw
ithMailSettings.xml” /a “D:\Report_Outbox\Custom Daily SYS Detail for 08-07-2018
‘SwithMail.exe’ is not recognized as an internal or external command,
operable program or batch file.
I have this as the generated XML change a few thins so it doesnt show my passwords.
<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
<AttachmentPath>D:\Report_Outbox\Daily SYS Sales Detail for 08-06-2018.pdf</AttachmentPath>
<Subject>Micros OB Daily Sales</Subject>
<Body>POS Daily Report</Body>
Where would I add this
D:\SMTP Send Email\SwithMailv2210\swithmail.exe /s /x “D:\SMTP Send Email\SwithMailv2210\SwithMailSettings.xml” /a “D:\Report_Outbox\Custom Daily SYS Detail for %CURRENT_DATE%.pdf”
This would be in the XML file generated that I would then add to the scrip to send out right. Appreciate the help big time
I’ll modify and will try it out . I’ll add this to the script now thank you
Custom Daily SYS Detail for 08-06-2017.pdf
The only thing that changes every night is the date at the end of the file name