Hello Guys,
i want to send email with attachment. Everything is okay when i'm generating first PDF based on PDF Template and then adding attachment to formula, but there is an issue which i managed to reproduce on official demo, when i want to send email with attachment which is already in EspoCRM.
How to reproduce:
i want to send email with attachment. Everything is okay when i'm generating first PDF based on PDF Template and then adding attachment to formula, but there is an issue which i managed to reproduce on official demo, when i want to send email with attachment which is already in EspoCRM.
How to reproduce:
- Log in to official demo
- Create new Flowchart with start and formula like on a screenshot bellow
- Enter formula like below
- Go to record and trigger process
PHP Code:
$attachmentId = '5a86df2dc332967d6';
$emailId = record\create('Email',
'to', 'test@domain.com',
'attachmentsIds', list('$attachmentId')
);
ext\email\send($emailId);
Comment