示例#1
0
    public void ThankYouMailOrganization(string Email, string FName, string CustomCode)
    {
        try
        {
            string strSubject = "BellyMelly Organisation Onboarding Team";

            MailMessage myMail = new MailMessage();

            using (StreamReader reader = File.OpenText(System.IO.Path.Combine(Server.MapPath("~/templates/"), "BM_Organisation_Sign_Up.htm")))
            {
                myMail.Body = reader.ReadToEnd();
            }
            string strBody = myMail.Body;

            strBody = strBody.Replace("##ContactName##", FName);
            strBody = strBody.Replace("##CustomCode##", CustomCode);


            CallSendMail objCallSendMail = new CallSendMail(sendmail);
            objCallSendMail.BeginInvoke(Email, strBody, strSubject, "*****@*****.**", null, null);

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#2
0
    private void SendMailRegisterOrganization(string FName, string LName, string Email, string Phone, string add1, string add2, string city, string state, string zip, string country, string customCode)
    {
        try
        {
            string strBody = "<b>Contact Name: </b> " + FName + " <br><br><b> Organization's Name: </b> " + LName +
                             "<br><br><b>Email: </b>" + Email + "<br><br><b>Phone : </b>" + Phone +
                             "<br><br><b>Address Line1: </b>" + add1 + "<br><br><b>Address Line2: </b>" + add2 +
                             "<br><br><b>City: </b>" + city + "<br><br><b>State: </b>" + state +
                             "<br><br><b>Zip: </b>" + zip + "<br><br><b>Country: </b>" + country +
                             "<br><br><b>Custom Code: </b>" + customCode;

            CallSendMail objCallSendMail = new CallSendMail(sendmail);

            objCallSendMail.BeginInvoke(EmailTo, strBody, strSubject, "", null, null);

            string ContactEmail = Email, ContactName = FName;

            if (Email != "")
            {
                ThankYouMailOrganization(Email, FName, customCode);
            }

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#3
0
    private void SendMailDiveIn(string Name, string RestaurantName, string Phone, string Email)
    {
        try
        {
            string strBody = "<b>Your Name: </b>" + Name +
                             "<br><br><b>Restaurant Name: </b>" + RestaurantName +
                             "<br><br><b>Phone Number: </b>" + Phone +
                             "<br><br><b>Email ID: </b>" + Email;

            //strSubject = "Contact Us for Dine In from BellyMelly.com";

            strSubject = "Contact Us for Dine In from 3rd Party";


            EmailTo = "*****@*****.**";


            CallSendMail objCallSendMail = new CallSendMail(sendmail);
            objCallSendMail.BeginInvoke(EmailTo, strBody, strSubject, "", null, null);

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#4
0
    private void SendEMail(string ContactName, string ContactPhone, string ContactEmail, string RestaurantName, string RestaurantEmail, string RestaurantPhone, string restaurantaddress, string RestaurantHours, string taxRate, string ddlTimeZone, string PickUpPreparation, string TimePickupBegins, string DeliveryPreparation, string TimeDeliveryBegins, string DeliveryZone, string DeliveryMinimum, string DeliveryCharge, string MenuFile, string ChequeFile, string Organization, string plan)
    {
        try
        {
            string strAgent    = Request.UserAgent;
            string BrowserName = Request.Browser.Browser.ToString();
            if (strAgent.ToLower().Contains("chrome"))
            {
                BrowserName = "Chrome";
            }
            else if (strAgent.ToLower().Contains("safari"))
            {
                BrowserName = "Safari";
            }

            BrowserName = "<b>Browser: </b>" + BrowserName + " " + Request.Browser.MajorVersion + " " + Request.Browser.MinorVersion + " " + Request.Browser.Platform + "<br>";


            string strBody = "<b>Contact Name: </b>" + ContactName + "<br><br><b>Contact Phone: </b>" + ContactPhone +
                             "<br><br><b>Contact Email: </b>" + ContactEmail + "<br><br><b>Restaurant DBA Name: </b>" + RestaurantName +
                             "<br><br><b>Restaurant Email: </b>" + RestaurantEmail + "<br><br><b>Restaurant Phone: </b>" + RestaurantPhone +
                             "<br><br><b>Restaurant Address: </b>" + restaurantaddress + "<br><br><b>Restaurant Hours: </b>" + RestaurantHours +
                             "<br><br><b>Tax Rate: </b>" + taxRate + "<br><br><b>Time Zone: </b>" + ddlTimeZone +
                             "<br><br><b>Time Required For Pick Ups: </b>" + PickUpPreparation + "<br><br><b>Restaurant Pick Up Hours: </b>" + TimePickupBegins +
                             "<br><br><b>Time Required for Delivery: </b>" + DeliveryPreparation + "<br><br><b>Restaurant Delivery Hours: </b>" + TimeDeliveryBegins +
                             "<br><br><b>Delivery Zone: </b>" + DeliveryZone + "<br><br><b>Delivery Minimum: </b>" + DeliveryMinimum +
                             "<br><br><b>Delivery Charge: </b>" + DeliveryCharge + "<br><br><b>Organization you would like to raise money for: </b>" + Organization +
                             "<br><br><b>Copy of Menu File: </b>" + MenuFile + "<br><br><b>Copy of Voided Cheque File: </b>" + ChequeFile +
                             "<br><br><b>Selected Plan: </b>" + plan + "<br>------------------------<br>" + BrowserName;

            /**/
            //CreateLead(first_name, last_name, email_address, phone_number, city, state, country, message);
            /**/


            CallSendMail objCallSendMail = new CallSendMail(sendmail);

            objCallSendMail.BeginInvoke(EmailTo, strBody, strSubject, "", null, null);

            if (ContactEmail != "")
            {
                ThankYouMail(ContactEmail, ContactName, RestaurantName);
                //ThankYouMailOrganization(ContactEmail, ContactName);
            }

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#5
0
    private void SendMailContactUs(string Name, string ContactPhone, string ContactEmail, string Query)
    {
        try
        {
            string strBody = "<b>Contact Name: </b>" + Name +
                             "<br><br><b>Phone Number: </b>" + ContactPhone +
                             "<br><br><b>Email: </b>" + ContactEmail +
                             "<br><br><b>Query: </b>" + Query;

            CallSendMail objCallSendMail = new CallSendMail(sendmail);
            objCallSendMail.BeginInvoke(EmailTo, strBody, strSubject, "", null, null);

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#6
0
    private void SendSignUpMail(string Name, string Address, string Phone, string RestaurantEmail, string RestaurantName, string Time)
    {
        try
        {
            string strBody = "<b>Name: </b>" + Name +
                             "<br><br><b>Address: </b>" + Address +
                             "<br><br><b>Phone: </b>" + Phone +
                             "<br><br><b>Email: </b>" + RestaurantEmail +
                             "<br><br><b>Restaurant Name: </b>" + RestaurantName +
                             "<br><br><b>Preferred Time to Connect: </b>" + Time;

            string strSubject = "Sign Up from BellyMelly.com";

            CallSendMail objCallSendMail = new CallSendMail(sendmail);
            objCallSendMail.BeginInvoke(EmailTo, strBody, strSubject, "", null, null);

            this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
示例#7
0
    public void ThankYouMail(string ContactEmail, string ContactName, string RestaurantName)
    {
        string strSubject = "BellyMelly Onboarding Team";

        MailMessage myMail = new MailMessage();

        using (StreamReader reader = File.OpenText(System.IO.Path.Combine(Server.MapPath("~/templates/"), "BM_User_Sign_Up.htm")))
        {
            myMail.Body = reader.ReadToEnd();
        }
        string strBody = myMail.Body;

        strBody = strBody.Replace("##ContactName##", ContactName);

        strBody = strBody.Replace("##RestaurantName##", RestaurantName);


        CallSendMail objCallSendMail = new CallSendMail(sendmail);

        objCallSendMail.BeginInvoke(ContactEmail, strBody, strSubject, "*****@*****.**", null, null);

        this.Page.ClientScript.RegisterStartupScript(this.GetType(), "foo", "successEmail()", true);
    }