File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 12
12
var downloadReleases = releasesService .GetDownloadReleases ();
13
13
}
14
14
15
- @{
16
- if (! string .IsNullOrWhiteSpace (Request .QueryString [" email" ]))
17
- {
18
- var bearerToken = System .Configuration .ConfigurationManager .AppSettings [" CollabBearerToken" ];
19
- var secret = Request .QueryString [" secret" ];
20
- if (secret != bearerToken )
21
- {
22
- return ;
23
- }
24
-
25
- const string subject = " Activate your account on our.umbraco.com" ;
26
-
27
- var body = " testing" ;
28
-
29
- var mailMessage = new System .Net .Mail .MailMessage
30
- {
31
- Subject = subject ,
32
- Body = body .ToString (),
33
- IsBodyHtml = true
34
- };
35
-
36
- var email = Request .QueryString [" email" ];
37
- mailMessage .To .Add (email );
38
-
39
- var emailFrom = System .Configuration .ConfigurationManager .AppSettings [" EmailFrom" ];
40
- mailMessage .From = new System .Net .Mail .MailAddress (emailFrom );
41
-
42
- var smtpClient = new System .Net .Mail .SmtpClient ();
43
- smtpClient .Send (mailMessage );
44
-
45
- < p > OK < / p >
46
- }
47
- }
48
-
49
15
<style type =" text/css" >
50
16
.download-box {
51
17
border-radius : 10px ;
You can’t perform that action at this time.
0 commit comments