Home Forums Bug Reports SwithMail Bug Reports Can you include Windows environment variables in the Attachment file name?

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • #782 Score: 0
      clowg
      Participant

      Can you include Windows environment variables in the Attachment file name?

      I tried in the settings XML, and on the command line as below, and neither worked – the email did not get sent.

      C:\Backups\SwithMail.exe /a “C:\Backups\Logs\Backup_%date:~10,4%%date:~4,2%%date:~7,2%.log” /s /x “C:\Backups\SwithMailSettings.xml”

      I did remove the attachment setting from the XML file before trying the command line version.

    • #784 Score: 0
      clowg
      Participant

      Found the problem. I had changed the From: address to something that O365 didn’t like and that was stopping the email sending (thanks /Log 🙂 ).

      The above command line works fine for sending a attachment that has environment variables in its name.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.