I have real estate installed.
When I create an opportunity from a request, I need to automatically send an email to the contact of the opportunity with the description of the property and the images of it to.
I can compose the email and send it fine with this code:
But I cannot think of a way to include the images of the property to,
I can retrieve the ids the names and the types of the images with property.imagesIds, property.imagesTypes, property.imagesNames,
but I am stuck as how to make them attachments in the email
Any Help please?
When I create an opportunity from a request, I need to automatically send an email to the contact of the opportunity with the description of the property and the images of it to.
I can compose the email and send it fine with this code:
PHP Code:
$to = contact.emailAddress;
ifThen(
requestId && contactId,
$emailId = record\create(
'Email',
'to', $to,
'subject', 'Προσφορά Ακινήτου',
'body', property.description,
'isHtml', false,
'status', 'Sending',
'parentId', id,
'parentType', 'Opportunity')
);
ext\email\send($emailId)
I can retrieve the ids the names and the types of the images with property.imagesIds, property.imagesTypes, property.imagesNames,
but I am stuck as how to make them attachments in the email
Any Help please?
Comment