I have a process that sends email with two files (one always exists), but sometimes the second file does not exist, since it is not necessary to send it, it can be done that if the second file does not exist, no error and send the mail via SMTP with a single file? or do I have to do it with IF?
Hello, I have doubts about this and perhaps I have not explained myself well, I have a directory of invoices and another directory of attached files, the mail always has the invoice, but not always the attachment, I give an example:
Invoice100.pdf + 100.pdf
Invoice101.pdf + //Without PDF
Invoice102.pdf + //Without PDF
Invoice103.pdf + 103.pdf
Hello
Finally, I have used the simplest solution and it works. I’ve added the “file exists” activity, and the IF sends me back with one or two files. As I always know that it will be one or two I have no problem, if there were more files I would have to find another solution.
Thanks. @ptrobot & @Gokul001