I haven't long time EspoCRM upgraded and after latest patch I discovered that E-mail sending not work any more, throws out validation error.
in entityDefs:
"status": {
"type": "enum",
"options": ["Draft", "Sending", "Sent", "Archived", "Failed"],
"default": "Archived",
"clientReadOnly": true,
"style": {
"Draft": "warning",
"Failed": "danger",
"Sending": "warning"
},
"customizationDisabled": true
},
In logs:
[2023-08-28 07:52:13] DEBUG: API (400) validationFailure; POST /Email; Input data: {"isRead":true,"isImportant":false,"inTrash":fa lse ,"isUsers":false,"isHtml":true,"status":"Sendin g", "isSystem":false,"isJustSent":false,"assignedU sers Ids":["1"],"assignedUsersNames":{"1":"XXX"},"teamsIds":["5494a63b986cc"],"teamsNames":{"5494a63b986cc":"XXX"},"body":"test <br>","from":"xxx@xxx.ee","to":"yyy@yyy.ee","cc":" ","bcc":"" ,"parentType":null,"parentName":null,"parentId" :nu ll,"selectTemplateName":null,"selectTemplateId":n u ll,"subject":"test","name":"test","bodyPlain":"te s t\n","attachmentsIds":[]}; Route pattern: /{controller}; Route params: Array ( [controller] => Email [action] => create )
[2023-08-28 07:52:13] WARNING: (400) Field validation failure; entityType: Email, field: status, type: valid.; POST /Email; line: 56, file: /var/www/vhosts/XXX/YYY/application/Espo/Core/Exceptions/BadRequest.php
What is wrong? How i can get email sending back to work.
in entityDefs:
"status": {
"type": "enum",
"options": ["Draft", "Sending", "Sent", "Archived", "Failed"],
"default": "Archived",
"clientReadOnly": true,
"style": {
"Draft": "warning",
"Failed": "danger",
"Sending": "warning"
},
"customizationDisabled": true
},
In logs:
[2023-08-28 07:52:13] DEBUG: API (400) validationFailure; POST /Email; Input data: {"isRead":true,"isImportant":false,"inTrash":fa lse ,"isUsers":false,"isHtml":true,"status":"Sendin g", "isSystem":false,"isJustSent":false,"assignedU sers Ids":["1"],"assignedUsersNames":{"1":"XXX"},"teamsIds":["5494a63b986cc"],"teamsNames":{"5494a63b986cc":"XXX"},"body":"test <br>","from":"xxx@xxx.ee","to":"yyy@yyy.ee","cc":" ","bcc":"" ,"parentType":null,"parentName":null,"parentId" :nu ll,"selectTemplateName":null,"selectTemplateId":n u ll,"subject":"test","name":"test","bodyPlain":"te s t\n","attachmentsIds":[]}; Route pattern: /{controller}; Route params: Array ( [controller] => Email [action] => create )
[2023-08-28 07:52:13] WARNING: (400) Field validation failure; entityType: Email, field: status, type: valid.; POST /Email; line: 56, file: /var/www/vhosts/XXX/YYY/application/Espo/Core/Exceptions/BadRequest.php
What is wrong? How i can get email sending back to work.
Comment