Unable to send mail and attachment using Send Email Step--specified filename not found

Unable to send mail and attachment using Send Email Step--specified filename not found

Issue: 
Unable to send Emails and attachments using the Send Email Step. After execution it is giving an error: specified filename not found and if execute it without attachment it gives the error: Unable to send an email. (Refer to the screenshot below). The agent and File to be attached are on the same machine.
image.png


Used a runtime parameter to specify the filename to be attached & tried to give the file name as String and File Data type.
Also, SMTP is configured and working fine.

Solution: Please find the attached sample workflow.

      Links to better reach 

            Bot Store

             EPD