Hi,
Attaching the excel file to the email does not give any error but when I try to open the attachment I get the following error:

The final steps of sending an email is as follows:
1.

2.

3.

the overall flow looks like :

I am not sure what am I doing is wrong causing corrupt email to be generated.