Commit ba0d0d7a authored by barth23's avatar barth23
Browse files

clear code

parent 91d3522a
......@@ -85,23 +85,14 @@ declare
map { "error_email": $error_email }
else if (string-length($message) = 0) then
map { "error_message": $error_message}
(:~ else if ( mail:send-email($mail, (), "UTF-8") ) then
map { "success": "Nachricht gesendet.",
"name": $name,
"email": $email,
"message": $message
} ~:)
else
let $mailsend := semapi_helper:launch_mail($mail)
(:~ $json_launch_mail ~:)
return
map { "success": "Nachricht gesendet.",
"name": $name,
"email": $email,
"message": $message
}
(:~ else
map { "error": $error} ~:)
return
$json_map
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment