I've tried running the scheduled task using a local account as well as my domain account. ![]() I receive the email with attachment within a second or two of executing it. Made sure the sendemail command worked with all the desired switches from a cmd line. The sendemail.exe and the report to be attached are in one folder local to the server.įirst tried using Blat for the email sending, but couldn't even get that to work from a cmd prompt. This machine is strictly used to run the Spiceworks program, which is doing great and even turns incomingĮmails into tickets and emails ticket notifications without a problem. We use an smtp server through Office 365. This is Windows Server 2008 R2 on a VM so I remote to it using a domain account. task scheduler can allow a file to be created and placed in a folder but can't send an email? Is there something I don't know about getting Task Scheduler to run a command even thought it works fine when manually executing the command from a Great! I try to run that same command using the Task Scheduler, and although the Task Scheduler reports all steps were successful and complete, I receive no email. After many tribulations, I have been able to successfully use a sendEmail command at the cmd prompt to email that file So, I would essentially have 2 scheduled tasks that would be run monthly. My next step is to email that file and automate that, too. If I delete the file and run it again using a Scheduled Task, it works again. I have successfully created a command that uses the ruby executable to pull a report and save it as a pdf file on a local folder on the server. I have been tasked with automating creating reports and emailing them from a Windows Server 2008 R2 VM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |