. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/ |
Upload File : |
using GrowelBLL.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GrowelWeb
{
public partial class Unsubscribe : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
msg.Visible = false;
string emailid = Convert.ToString(Request.QueryString["emailid"]);
if (emailid != null)
{
if (emailid.ToLower().Contains("jpg") || emailid.ToLower().Contains("png"))
{
return;
}
AdminService adminService = new AdminService();
adminService.AddEditunsubscribe("", emailid);
}
}
catch (Exception ex)
{
//throw;
}
}
protected void btnsave_Click(object sender, EventArgs e)
{
AdminService adminService = new AdminService();
adminService.AddEditunsubscribe("", txtemailId.Text);
SendMail();
msg.Visible = true;
}
private void SendMail()
{
//string subject = "Growel - Downlooad";
string strEmailId = txtemailId.Text.Trim();
string message =
"Dear Sir, <br>" +
"<table width='500' border='0' align='center' cellpadding='10' cellspacing='4' style='font-family:Arial, Helvetica, sans-serif;font-size:12px;border:1px solid #ddd;'><tr><td colspan='2' align='center' valign='top'><p><img src='https://growel.com/Includes/images/logo.png'>" +
"</p></td></tr><tr><td width='200' align='right' valign='top'>" +
"<strong>Unsubscribe Email Id: </strong></td><td>" + strEmailId + "</td></tr>";
message += "<tr><td align='right' valign='top'> </td><td> </td></tr></table><p> </p>";
clsComman clsComman = new clsComman();
clsComman.SendMail("Unsubscribe Email Id ", message);
}
}
}