Hello,
I'm new to the forum. I've been trying to figure out how to send attachments via email, and I found that it works only for a single attachment using the "fileId" field. However, it doesn't seem to work for multiple attachments.
I tried that.
I'm new to the forum. I've been trying to figure out how to send attachments via email, and I found that it works only for a single attachment using the "fileId" field. However, it doesn't seem to work for multiple attachments.
I tried that.
PHP Code:
$attachmentId = record\create('Attachment',
'role', 'Attachment',
'type', record\attribute('Attachment', picesJointesIds, 'type'),
'size', record\attribute('Attachment', picesJointesIds, 'size'),
'global', record\attribute('Attachment', picesJointesIds, 'global'),
'name', record\attribute('Attachment', picesJointesIds, 'name'),
'sourceId', picesJointesIds,
'storage', record\attribute('Attachment', picesJointesIds, 'storage')
);
$id = record\create(
'Email',
'from', 'test@test.com',
'to', test,
'subject', name,
'body', rponses,
'isHtml', true,
'attachmentsIds', list($attachmentId),
'status', 'Sending'
);
ext\email\send($id);
Comment