diff --git a/SteamWareLib/devicesAuthProxy.cs b/SteamWareLib/devicesAuthProxy.cs
index de3b887..32788ec 100644
--- a/SteamWareLib/devicesAuthProxy.cs
+++ b/SteamWareLib/devicesAuthProxy.cs
@@ -219,6 +219,23 @@ namespace SteamWare
/// chiave (in chiaro)
/// chiave (in chiaro)
public void sendEmailAuthKey(string email, string AuthKey, string subject)
+ {
+ string body = "Hi,
This is an automatic message generated by {3} platform on behalf of platform admin.
Please click on following link (or cut/paste to your preferred browser) to enable current device to {3} login.
Regards.";
+ sendEmailAuthKey(email, AuthKey, subject, body);
+ }
+ ///
+ /// invia email ad utente con url x enroll
+ ///
+ ///
+ /// chiave (in chiaro)
+ /// chiave (in chiaro)
+ /// body (in formato da completare string.format con 4 parametri che verrano inseriti come i seguenti:
+ /// {0} = baseURL - memLayer.ML.confReadString("baseUrl")
+ /// {1} = chaive encoded - HttpUtility.UrlEncode(md5UserAuthKey)
+ /// {2} = email destinatario
+ /// {3} = subject
+ ///
+ public void sendEmailAuthKey(string email, string AuthKey, string subject, string body)
{
// se ho email admin...
if (email != "")
@@ -226,7 +243,7 @@ namespace SteamWare
// calcolo chiave MD5...
string md5UserAuthKey = encodeKey(AuthKey);
// mando email ad admin x reset utente...
- string oggetto = string.Format("Hi,
This is an automatic message generated by {3} platform on behalf of platform admin.
Please click on following link (or cut/paste to your preferred browser) to enable current device to {3} login.
Regards.", memLayer.ML.confReadString("baseUrl"), HttpUtility.UrlEncode(md5UserAuthKey), email, subject);
+ string oggetto = string.Format(body, memLayer.ML.confReadString("baseUrl"), HttpUtility.UrlEncode(md5UserAuthKey), email, subject);
gestEmail.geAuth.mandaEmail(memLayer.ML.confReadString("_fromEmail"), email, subject, oggetto);
}
}