diff --git a/emails/mesh-invite.html b/emails/mesh-invite.html
index e409929d..155eb9c7 100644
--- a/emails/mesh-invite.html
+++ b/emails/mesh-invite.html
@@ -34,7 +34,7 @@
- Click here to download the MeshCentral Assistant for Windows.
+ Click here to download the MeshCentral Assistant for Windows.
diff --git a/emails/mesh-invite.txt b/emails/mesh-invite.txt
index 42eadbb0..957b2d5e 100644
--- a/emails/mesh-invite.txt
+++ b/emails/mesh-invite.txt
@@ -29,7 +29,7 @@ For Linux, cut & paste the following in a terminal to install the agent:
~
For MeshCentral Assistant on Windows, nagivate to the following link to complete the process:
~
-~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]
+~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&ac=[[[ASSISTANTTYPE]]]
~
~
~
diff --git a/meshmail.js b/meshmail.js
index c5977ea1..2b4fcdee 100644
--- a/meshmail.js
+++ b/meshmail.js
@@ -346,7 +346,7 @@ module.exports.CreateMeshMail = function (parent, domain) {
}
// Set all the template replacement options and generate the final email text (both in txt and html formats).
- var options = { username: username, name: name, email: email, installflags: flags, msg: msg, meshid: meshid, meshidhex: meshid.split('/')[2], servername: domain.title ? domain.title : 'MeshCentral' };
+ var options = { username: username, name: name, email: email, installflags: flags, msg: msg, meshid: meshid, meshidhex: meshid.split('/')[2], servername: domain.title ? domain.title : 'MeshCentral', assistanttype: (domain.assistanttypeagentinvite ? domain.assistanttypeagentinvite : 0)};
if (loginkey != null) { options.urlargs1 = '?key=' + loginkey; options.urlargs2 = '&key=' + loginkey; } else { options.urlargs1 = ''; options.urlargs2 = ''; }
options.windows = ((os == 0) || (os == 1)) ? 1 : 0;
options.linux = ((os == 0) || (os == 2)) ? 1 : 0;