Beispiel #1
0
        protected void SendMail()
        {
            Users u = CurrentUser.Entity();

            using (MailClient mc = new MailClient(u.Email))
            {
                mc.Subject = "Verify your Email Address";
                mc.AddLine("Thank you for registering with HackNet!");
                mc.AddLine("We hope you enjoy your gaming experience with us,");
                mc.AddLine("Kindly verify your email address by clicking on the link below");
                mc.Send(u.FullName, "Verify Email", "https://haxnet.azurewebsites.net/");
            }
        }
Beispiel #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            MailClient mc = new MailClient("*****@*****.**");

            mc.Subject = Subjecttxt.Text;
            mc.AddLine(contenttxt.Text);
            mc.AddLine("This content was User-Generated from " + useremail.Text);
            mc.Send("HackNet Team", "go to website", "www.pussy.com");

            Subjecttxt.Text = string.Empty;
            contenttxt.Text = string.Empty;
            useremail.Text  = string.Empty;
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["packageId"] != null && Session["packagePrice"] != null && Session["transactionId"] != null)
            {
                string packageName  = Session["packageId"].ToString();
                string packagePrice = Session["packagePrice"].ToString();
                transactionDetails = Session["transactionId"].ToString();
                message            = "Package " + packageName + " at $" + packagePrice;
            }
            else
            {
                Response.Redirect("~/game/currency", true);
            }

            Users      u  = CurrentUser.Entity();
            MailClient mc = new MailClient(u.Email);

            mc.Subject = "Hacknet Purchase";
            mc.AddLine("Thank you for buying " + message + "!");
            mc.AddLine("Your Transaction Id is " + transactionDetails);
            mc.AddLine("We hope you enjoy your gaming experience with us.");
            mc.AddLine("");
            mc.AddLine("If you did not conduct this purchase, please contact our Support staff at [email protected], quoting your transaction ID.");
            mc.AddLine("");
            mc.AddLine("Thank you.");
            mc.Send(u.FullName, "Contact Us", "https://haxnet.azurewebsites.net/");

            transactionId.Text     = transactionDetails;
            packageDetailsLbl.Text = message;
        }