``` var attach = file.load({ id: fileI...
# suitescript
l
Copy code
var attach = file.load({
            id: fileId
        });
var emailOpt = {
    author: senderInternalId,
    subject: 'test email',
    recipients: '<mailto:my@email.com|my@email.com>',
    body: 'some text',
    attachments: [attach]
};