Skip to content

Commit bd1fae0

Browse files
tsmyth-aquaqjonnypress
authored andcommitted
Added fix to .email.senddefault to terminate if no connection to server (#37)
1 parent c4950c7 commit bd1fae0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/common/email.q

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ senddefault:{
4747
if[not enabled; .lg.e[`email;e:"email sending is not enabled"]; 'e];
4848
.lg.o[`email;"sending email"];
4949
if[not connected; connectdefault[]];
50-
if[not connected; .lg.e[`email; "cannot send email as no connection to mail server available"]];
50+
if[not connected; :.lg.e[`email; "cannot send email as no connection to mail server available"]];
5151
x[`body]:x[`body],defaultfooter[];
5252
res:send x,`image`debug!(img;debug);
5353
$[res>0;.lg.o[`email;"Email sent. size was ",(string res)," bytes"]; .lg.e[`email;"failed to send email"]];

0 commit comments

Comments
 (0)