sms not sending
Collapse
X
-
Hi,
i am not sure,
can you look log ?
i have a custom smsSender .. who worked without issue...until upgrade php 8.3 i think. just see now.
error log in my case is :
InjectableFactory: Could not create 'Espo\Entities\Sms', the dependency 'entityType' is not resolved.;
and with try
Typed property Espo\Core\Sms\SmsSender::$sender must not be accessed before initialization
Maybe try with advanced pack..
espoCrm : 8.1.1
php :Edit : it's not php 8.3.2 .. 8.2.x do same error. i have forget on witch espoCrm version i have do this working..maybe 8 or last 7.x8.3.2
Edit 2 : same script work with $email = $this->emailFactory->create();
Last edited by item; 01-31-2024, 10:44 PM.Leave a comment:
-
php version is PHP 8.3.2-1+ubuntu20.04.1+deb.sury.org+1
Espocrm version Version 8.1.1SMS Providers 1.6.0 Leave a comment:
-
sms not sending
Hello, after some update it doesn't send sms anymore
bpmn script:
$darbuotojas = assignedUser.name;
$telefonas = assignedUser.phoneNumber;
$rmaaktas = rmanr;
$preke = rmamodel;
$smsBody = string\concatenate(
'RMA aktas: ', $rmaaktas, '\n',
'Sveiki, Jūsų įrenginys ' , $preke,' užregistruotas remontui.', '\n',
'Prekės priėmimo perdavimo aktas ir prisijungimas prie RMA portalo išsiųstas į Jūsų el. paštą. ', '\n',
'Priskirtas darbuotojas: ', $darbuotojas, '\n',
'Tel. Nr.: ', $telefonas, '\n'
);
$smsId = record\create(
'Sms',
'to', entity\attribute('contact.phoneNumber'),
'body',$smsBody,
'parentType', 'Remontai','parentId', id
);
ext\sms\send($smsId);
error code:
[2024-01-31 12:24:23] ERROR: Process 65ba3bf7644b1ed8b element ha7a6v2x5s: Typed property Espo\Core\Sms\SmsSender::$sender must not be accessed before initialization
please helpTags: None
Leave a comment: