I was trying to send an email with Before-save formula script, that looks something like that:
That, works fine with the shared Outbound Emails but if I want to send that email with a personal email, whatever I do, does not work.
I have tried adding:
with no luck.
Should I do something else to clarify that I need the email sent from the personal email account?
PHP Code:
.......
.......
.......
ifThen(
requestId && contactId,
$emailId = record\create(
'Email',
'to', $to,
'subject', 'Προσφορά Ακινήτου',
'body', string\concatenate(property.description, '\n',description, '\n','\n', "Τιμη: ",amount,'€'),
'isHtml', false,
'status', 'Sending',
'attachmentsIds', $attachmentList,
'parentId', id,
'parentType', 'Opportunity')
);
ext\email\send($emailId)
I have tried adding:
PHP Code:
$fromEmail = assignedUser.emailAddress;
$fromName = assignedUser.name
ifThen(
requestId && contactId,
$emailId = record\create(
'Email',
'to', $to,
'fromEmail', $fromEmail,
'fromName', $fromName,
'subject', 'Προσφορά Ακινήτου',
'body', string\concatenate(property.description, '\n',description, '\n','\n', "Τιμη: ",amount,'€'),
'isHtml', false,
'status', 'Sending',
'attachmentsIds', $attachmentList,
'parentId', id,
'parentType', 'Opportunity')
);
ext\email\send($emailId)
Should I do something else to clarify that I need the email sent from the personal email account?
Comment