3
3
// The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
4
4
// See the LICENSE and NOTICES files in the project root for more information.
5
5
6
- using System ;
7
- using System . IO ;
8
6
using System . Net ;
9
7
using System . Net . Mail ;
10
8
using System . Text ;
@@ -31,15 +29,14 @@ public void SendConfirmationEmail(string emailAddress, string secret)
31
29
var messageBuilder = new StringBuilder ( ) ;
32
30
33
31
messageBuilder . AppendLine (
34
- @"An account has been created for email address '" + emailAddress +
35
- "' in Sandbox Admin." ) ;
32
+ $ "An account has been created for email address '{ emailAddress } ' in Sandbox Admin.") ;
36
33
37
34
messageBuilder . AppendLine ( ) ;
38
35
messageBuilder . AppendLine ( @"Please follow this link to set your password:" ) ;
39
36
messageBuilder . AppendLine ( ) ;
40
37
messageBuilder . AppendLine ( _routeService . GetRouteForActivation ( emailAddress , secret ) ) ;
41
38
42
- var body = string . Format ( messageBuilder . ToString ( ) , secret ) ;
39
+ var body = messageBuilder . ToString ( ) ;
43
40
44
41
var message = new MailMessage
45
42
{
@@ -62,7 +59,7 @@ public void SendForgotPasswordEmail(string emailAddress, string secret)
62
59
messageBuilder . AppendLine ( @"In order to reset your password, please follow this link:" ) ;
63
60
messageBuilder . AppendLine ( _routeService . GetRouteForPasswordReset ( emailAddress , secret ) ) ;
64
61
65
- var body = string . Format ( messageBuilder . ToString ( ) , secret ) ;
62
+ var body = messageBuilder . ToString ( ) ;
66
63
67
64
var message = new MailMessage
68
65
{
0 commit comments