send email - do not change status if test
This commit is contained in:
parent
afd3df123f
commit
b1923e8d4c
4 changed files with 10 additions and 147 deletions
|
|
@ -24,7 +24,10 @@ return [
|
|||
"body" => $emailPage->body()
|
||||
]
|
||||
])->isSent()) {
|
||||
$emailPage->changeStatus("listed");
|
||||
if (!$data->isTest) {
|
||||
$emailPage->changeStatus("listed");
|
||||
}
|
||||
|
||||
return json_encode([
|
||||
'status' => 'success',
|
||||
'message' =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue