diff --git a/src/api/identity.rs b/src/api/identity.rs
index 0fbe77ed7ee3bdf9182346da25fc0230d05edcc0..fe40dcd21a9790270b4e64441fdac40e491337ec 100644
--- a/src/api/identity.rs
+++ b/src/api/identity.rs
@@ -106,7 +106,9 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult
     let twofactor_token = twofactor_auth(&user.uuid, &data, &mut device, &conn)?;
 
     if CONFIG.mail_enabled() && new_device {
-        mail::send_new_device_logged_in(&user.email, &ip.ip.to_string(), &device.updated_at, &device.name)?
+        if let Err(e) = mail::send_new_device_logged_in(&user.email, &ip.ip.to_string(), &device.updated_at, &device.name) {
+            error!("Error sending new device email: {:#?}", e);
+        }
     }
 
     // Common