Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Attachments #406 Score: 0
    ican2
    Participant

    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

    set CURRENT_DATE=%date:~4,2%-%date:~7,2%-%date:~10,4%
    SwithMail.exe /s /x “D:\Switchmail\SwithMailSettings.xml” /a “D:\Report_Outbox\Custom Daily SYS Detail for %CURRENT_DATE%.pdf

    in reply to: Attachments #401 Score: 0
    ican2
    Participant

    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

    set CURRENT_DATE=%date:~4,2%-%date:~7,2%-%date:~10,4%
    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>set CURRENT_DATE=08-07-2018
    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
    .pdf”
    ‘SwithMail.exe’ is not recognized as an internal or external command,
    operable program or batch file.

    in reply to: Attachments #395 Score: 0
    ican2
    Participant

    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”?>
    <SwithMailSettings>
    <ServerSettings>
    <FromName>POS </FromName>
    <FromAddress>POS@DOMAIN</FromAddress>
    <Username>USERNAME</Username>
    <Password>PASSWORD</Password>
    <ObscurePassword>False</ObscurePassword>
    <MailServer>smtp.socketlabs.com</MailServer>
    <MailServerPort>25</MailServerPort>
    <SSL>False</SSL>
    <Encoding />
    <RequestReceipt>False</RequestReceipt>
    <MessageID>False</MessageID>
    </ServerSettings>
    <EmailAddresses>
    <To>EMAIL</To>
    <CC>EMAIL</CC>
    <BCC />
    <ReplyTo />
    </EmailAddresses>
    <Attachments>
    <AttachmentPath>D:\Report_Outbox\Daily SYS Sales Detail for 08-06-2018.pdf</AttachmentPath>
    </Attachments>
    <EmailContent>
    <HTML>False</HTML>
    <DontReplaceNewLine>False</DontReplaceNewLine>
    <Subject>Micros OB Daily Sales</Subject>
    <Body>POS Daily Report</Body>
    <BodyTxtFile />
    <Priority>high</Priority>
    </EmailContent>
    </SwithMailSettings>

    Where would I add this

    set CURRENT_DATE=%date:~4,2%-%date:~7,2%-%date:~10,4%
    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

    in reply to: Attachments #392 Score: 0
    ican2
    Participant

    I’ll modify and will try it out . I’ll add this to the script now thank you

    in reply to: Attachments #387 Score: 0
    ican2
    Participant

    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

Viewing 5 posts - 1 through 5 (of 5 total)