Can the report type be specific with the SMTPReportCommand? We currently have a few tasks that we use SaveReportCommand then SMTPCommand. We can save as PDF that way. I would like to use SMTPReportCommand because it's a one liner, but it defaults to MHT.
No actually I am using the below command adapted from the documentation.
We currently use the SaveReportCommand in which you do specify format=pdf and a SMTPCommand to email, but this takes two commands for one task.
I tried just adding format=pdf, but it didn't work. I don't see how using the whole URL would work since it is attempting to saveas and you must provide a path since it saves an actual file. This is what I am currently using however SMTPReportCommand performs these two commands in one, but without an option for report type, i.e. MHT,PDF,etc.
I have attached some Tasks that work correctly.
When you change the configuration of your task, change the name too, it's a best practice to update a fresh configuration into the CAS environment. And verifiy that you don't have the same task in different files (in the task and the copy of this task for exemple).
Add the name after the ID.
I appreciate your input. I edited my previous comment. What I have shown works currently, but I would like to use the SMTPReportCommand since it is only one command instead of two. I just don't see the option to set file type, i.e. PDF, etc.