+
+
+ Your Bitwarden account was just logged into from a new device.
+ |
+
+
+
+ Date: {{TheDate}} at {{TheTime}} {{TimeZone}}
+ IP Address: {{IpAddress}}
+ Device Type: {{DeviceType}}
+ |
+
+
+
+ You can deauthorize all devices that have access to your account from the web vault under Settings → My Account → Deauthorize Sessions.
+ |
+
+
+{{/FullHtmlLayout}}
diff --git a/src/Core/MailTemplates/Handlebars/NewDeviceLoggedIn.text.hbs b/src/Core/MailTemplates/Handlebars/NewDeviceLoggedIn.text.hbs
new file mode 100644
index 000000000..06b3661cb
--- /dev/null
+++ b/src/Core/MailTemplates/Handlebars/NewDeviceLoggedIn.text.hbs
@@ -0,0 +1,10 @@
+{{#>BasicTextLayout}}
+Your Bitwarden account was just logged into from a new device.
+
+Date: {{TheDate}} at {{TheTime}} {{TimeZone}}
+IP Address: {{IpAddress}}
+Device Type: {{DeviceType}}
+
+You can deauthorize all devices that have access to your account from the
+web vault under Settings > My Account > Deauthorize Sessions.
+{{/BasicTextLayout}}
\ No newline at end of file
diff --git a/src/Core/Models/Mail/NewDeviceLoggedInModel.cs b/src/Core/Models/Mail/NewDeviceLoggedInModel.cs
new file mode 100644
index 000000000..ee550fc4e
--- /dev/null
+++ b/src/Core/Models/Mail/NewDeviceLoggedInModel.cs
@@ -0,0 +1,11 @@
+namespace Bit.Core.Models.Mail
+{
+ public class NewDeviceLoggedInModel : BaseMailModel
+ {
+ public string TheDate { get; set; }
+ public string TheTime { get; set; }
+ public string TimeZone { get; set; }
+ public string IpAddress { get; set; }
+ public string DeviceType { get; set; }
+ }
+}
diff --git a/src/Core/Services/IMailService.cs b/src/Core/Services/IMailService.cs
index 9a2a2aefe..f43dc3c14 100644
--- a/src/Core/Services/IMailService.cs
+++ b/src/Core/Services/IMailService.cs
@@ -20,5 +20,6 @@ namespace Bit.Core.Services
Task SendOrganizationConfirmedEmailAsync(string organizationName, string email);
Task SendPasswordlessSignInAsync(string returnUrl, string token, string email);
Task SendInvoiceUpcomingAsync(string email, decimal amount, DateTime dueDate, List