Sendgrid & attachement update

Dear @shan
Thanks for your quick replay! I put the code in a JS File and it looks very good but the only think I have trouble with is the .buffer() function which seems to be not supported by wix-fetch?

Any suggestions what I can do here?