$id = record\create(
'Email',
'from', 'XXX@XXX.com',
'to', 'YY@yy.com',
'subject', name,
'body', conent1,
'isHtml', true,
'status', 'Sending'
);
ext\email\send($id);
creates email with empty 'to' field (in attach). It seems to be a bug.
I can fill this fiels with:
$idarrd = record\findOne('EmailAddress','','', 'name',$toemail);
ifThen($idarrd == '',
$idarrd = record\create(
'EmailAddress',
'name', $toemail,
'lower', $toemail
);
);
record\relate('Email', $id,'toEmailAddresses', $idarrd);
'Email',
'from', 'XXX@XXX.com',
'to', 'YY@yy.com',
'subject', name,
'body', conent1,
'isHtml', true,
'status', 'Sending'
);
ext\email\send($id);
creates email with empty 'to' field (in attach). It seems to be a bug.
I can fill this fiels with:
$idarrd = record\findOne('EmailAddress','','', 'name',$toemail);
ifThen($idarrd == '',
$idarrd = record\create(
'EmailAddress',
'name', $toemail,
'lower', $toemail
);
);
record\relate('Email', $id,'toEmailAddresses', $idarrd);
Comment