using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Cors;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Hosting;
using System.Threading;
using Domain.Socioboard.Interfaces.Services;
using Microsoft.AspNetCore.Http;
using System.IO;

// For more information on enabling Web API for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860

namespace Api.Socioboard.Controllers
{
    [EnableCors("AllowAll")]
    [Route("api/[controller]")]
    public class GetInTouchController : Controller
    {
        public GetInTouchController(ILogger<AdsOffersController> logger, IEmailSender emailSender, Microsoft.Extensions.Options.IOptions<Helper.AppSettings> settings, IHostingEnvironment env)
        {
            _logger = logger;
            _emailSender = emailSender;
            _appSettings = settings.Value;
            _redisCache = new Helper.Cache(_appSettings.RedisConfiguration);
            _env = env;
        }
        private readonly ILogger _logger;
        private Helper.AppSettings _appSettings;
        private readonly IEmailSender _emailSender;
        private Helper.Cache _redisCache;
        private readonly IHostingEnvironment _env;

        [HttpPost("SendMailToGetInTouch")]
        public IActionResult SendMailToGetInTouch(string name, string email, string sub, string issue, string message, IFormFile files)
        {
            string html = "";
            string filename="", tempfilepath, uploads;
            if (files != null)
            {
                if (files.Length > 0)
                {
                    var fileName = Microsoft.Net.Http.Headers.ContentDispositionHeaderValue.Parse(files.ContentDisposition).FileName.Trim('"');
                    filename = Microsoft.Net.Http.Headers.ContentDispositionHeaderValue
                            .Parse(files.ContentDisposition)
                            .FileName
                            .Trim('"');
                    var tempName = Domain.Socioboard.Helpers.SBHelper.RandomString(10) + '.' + fileName.Split('.')[1];
                    filename = _env.WebRootPath + "\\upload" + $@"\{tempName}";
                    tempfilepath = filename;
                    uploads = _appSettings.ApiDomain + "/api/Media/get?id=" + $@"{tempName}";
                    using (FileStream fs = System.IO.File.Create(filename))
                    {
                        files.CopyTo(fs);
                        fs.Flush();
                    }
                    filename = uploads;
                }
                //html = "<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <style type=\"text/css\"> html { width: 100% } ::-moz-selection { background: #eb5600; color: #fff } ::selection { background: #eb5600; color: #fff } body { background-color: #f8f8f8; margin: 0; padding: 0 } .ReadMsgBody { width: 100%; background-color: #f8f8f8 } .ExternalClass { width: 100%; background-color: #f8f8f8 } a { color: #eb5600; text-decoration: none; font-weight: 400; font-style: normal } a:hover { color: #aaa; text-decoration: underline; font-weight: 400; font-style: normal } a.heading-link { text-decoration: none; font-weight: 400; font-style: normal } a.heading-link:hover { text-decoration: none; font-weight: 400; font-style: normal } p, div { margin: 0!important } table { border-collapse: collapse } @media only screen and (max-width: 640px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 440px!important; margin: 0 auto!important } table[class=table_scale] { width: 440px!important; margin: 0 auto!important } td[class=td_scale] { width: 440px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 440px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 400px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } @media only screen and (max-width: 479px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 280px!important; margin: 0 auto!important } table[class=table_scale] { width: 280px!important; margin: 0 auto!important } td[class=td_scale] { width: 280px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 280px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 240px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } </style> <style type=\"text/css\"></style> </head> <body bgcolor=\"#f8f8f8\"> <!-- START OF HEADER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin-top: 20px;\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LOGO IMAGE TABLE--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"padding: 0px; text-transform: uppercase; font-family: Lucida Sans Unicode; color:#666666; font-size:24px; line-height:34px;\"> <span> <a href=\"#\" style=\"color:#eb5600;\"> <img src=\"http://i.imgur.com/sC2o03M.png\" alt=\"logo\" width=\"250\" height=\"55\" border=\"0\" style=\"display: inline;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF LOGO IMAGE TABLE--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF CONTACT TABLE--> <table class=\"full\" align=\"right\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; padding-top: 10px; text-transform: uppercase; font-size: 10px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> call us: +91 74 0631 7771, +91 80 4166 0003</span> </td> </tr> </tbody> </table> <!-- END OF CONTACT TABLE--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF HEADER BLOCK--> <!-- START OF FEATURED AREA BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table class=\"table_scale\" width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\" valign=\"middle\" style=\"padding: 0px;\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> <!-- START OF HEADING--> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: Lucida Sans Unicode; font-size: 32px; color: #ffffff; line-height: 42px;mso-line-height-rule: exactly;\"> <span> Hello I am Rajsekhar</span> </td> </tr> <!-- END OF HEADING--> <!-- START OF Cong--> <tr> <td class=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: calibri; font-size: 18px; color: #ffffff; line-height: 30px;mso-line-height-rule: exactly;\"> <span><strong style=\"color:black\">Email</strong> : rajsekharpatnaik@globussoft.in</span> <br /> <span><strong style=\"color:black\">Subject</strong> : Keep Socioboard</span> <br /> <span><strong style=\"color:black\">Issue level</strong> : lyf</span> <br /> <span><strong style=\"color:black\">Message</strong> : Hello Socioboard :)</span> <br /> <span><strong style=\"color:black\">Attachment</strong> : <br /><img src=\"http://i.imgur.com/DiPHPnP.jpg\" style=\"width:30%\"/></span> </td> </tr> <!-- END oF Cong --> <!-- START OF TEXT--> <!-- END OF TEXT--> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> <!--[if gte mso 9]> </v:textbox> </v:rect> <![endif]--> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF FEATURED AREA BLOCK--> <!-- START OF SOCIAL BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ededed\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LEFT COLUMN FOR HEADING--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"margin: 0; text-transform: uppercase; font-size: 20px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> FOLLOW US ONLINE:</span> </td> </tr> </tbody> </table> <!-- END OF LEFT COLUMN FOR HEADING--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF RIGHT COLUMN FOR SOCIAL ICONS--> <table class=\"full\" align=\"right\" width=\"300\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; font-size:14px ; color:#aaaaaa; font-family: Helvetica, Arial, sans-serif; line-height: 100%;\"> <span> <a href=\"https://www.facebook.com/SocioBoard\" target=\"_blank\"> <img src=\"http://i.imgur.com/mrfZQKf.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://twitter.com/Socioboard\" target=\"_blank\"> <img src=\"http://i.imgur.com/gSA8HbM.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://plus.google.com/b/105412765098773776122/105412765098773776122/posts\" target=\"_blank\"> <img src=\"http://i.imgur.com/EseCwni.png?1\" style=\"height: 70px;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF RIGHT COLUMN FOR SOCIAL ICONS--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF SOCIAL BLOCK--> <!-- START OF FOOTER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#666666\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> We doubled our revenues from the leads acquired with the help of Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Mahmoudou Sidibe, US</a></span> </td> </tr> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> Makes life easy and less cumbersome with smart social inbox. Thanks Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Maya Ross, UK</a></span> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-top: 1px solid #767373;\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#f8f8f8\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>";
                html = "<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <style type=\"text/css\"> html { width: 100% } ::-moz-selection { background: #eb5600; color: #fff } ::selection { background: #eb5600; color: #fff } body { background-color: #f8f8f8; margin: 0; padding: 0 } .ReadMsgBody { width: 100%; background-color: #f8f8f8 } .ExternalClass { width: 100%; background-color: #f8f8f8 } a { color: #eb5600; text-decoration: none; font-weight: 400; font-style: normal } a:hover { color: #aaa; text-decoration: underline; font-weight: 400; font-style: normal } a.heading-link { text-decoration: none; font-weight: 400; font-style: normal } a.heading-link:hover { text-decoration: none; font-weight: 400; font-style: normal } p, div { margin: 0!important } table { border-collapse: collapse } @media only screen and (max-width: 640px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 440px!important; margin: 0 auto!important } table[class=table_scale] { width: 440px!important; margin: 0 auto!important } td[class=td_scale] { width: 440px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 440px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 400px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } @media only screen and (max-width: 479px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 280px!important; margin: 0 auto!important } table[class=table_scale] { width: 280px!important; margin: 0 auto!important } td[class=td_scale] { width: 280px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 280px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 240px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } </style> <style type=\"text/css\"></style> </head> <body bgcolor=\"#f8f8f8\"> <!-- START OF HEADER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin-top: 20px;\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LOGO IMAGE TABLE--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"padding: 0px; text-transform: uppercase; font-family: Lucida Sans Unicode; color:#666666; font-size:24px; line-height:34px;\"> <span> <a href=\"#\" style=\"color:#eb5600;\"> <img src=\"http://i.imgur.com/sC2o03M.png\" alt=\"logo\" width=\"250\" height=\"55\" border=\"0\" style=\"display: inline;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF LOGO IMAGE TABLE--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF CONTACT TABLE--> <table class=\"full\" align=\"right\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; padding-top: 10px; text-transform: uppercase; font-size: 10px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> call us: +91 74 0631 7771, +91 80 4166 0003</span> </td> </tr> </tbody> </table> <!-- END OF CONTACT TABLE--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF HEADER BLOCK--> <!-- START OF FEATURED AREA BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table class=\"table_scale\" width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\" valign=\"middle\" style=\"padding: 0px;\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> <!-- START OF HEADING--> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: Lucida Sans Unicode; font-size: 32px; color: #ffffff; line-height: 42px;mso-line-height-rule: exactly;\"> <span> Hello I am " + name + "</span> </td> </tr> <!-- END OF HEADING--> <!-- START OF Cong--> <tr> <td class=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: calibri; font-size: 18px; color: #ffffff; line-height: 30px;mso-line-height-rule: exactly;\"> <span><strong style=\"color:black\">Email</strong> : " + email + "</span> <br /> <span><strong style=\"color:black\">Subject</strong> : " + sub + "</span> <br /> <span><strong style=\"color:black\">Issue level</strong> : " + issue + "</span> <br /> <span><strong style=\"color:black\">Message</strong> : " + message + "</span> <br /> <span><strong style=\"color:black\">Attachment</strong> : <br /><img src=\"" + filename + "\" style=\"width:30%\"/></span> </td> </tr> <!-- END oF Cong --> <!-- START OF TEXT--> <!-- END OF TEXT--> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> <!--[if gte mso 9]> </v:textbox> </v:rect> <![endif]--> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF FEATURED AREA BLOCK--> <!-- START OF SOCIAL BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ededed\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LEFT COLUMN FOR HEADING--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"margin: 0; text-transform: uppercase; font-size: 20px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> FOLLOW US ONLINE:</span> </td> </tr> </tbody> </table> <!-- END OF LEFT COLUMN FOR HEADING--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF RIGHT COLUMN FOR SOCIAL ICONS--> <table class=\"full\" align=\"right\" width=\"300\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; font-size:14px ; color:#aaaaaa; font-family: Helvetica, Arial, sans-serif; line-height: 100%;\"> <span> <a href=\"https://www.facebook.com/SocioBoard\" target=\"_blank\"> <img src=\"http://i.imgur.com/mrfZQKf.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://twitter.com/Socioboard\" target=\"_blank\"> <img src=\"http://i.imgur.com/gSA8HbM.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://plus.google.com/b/105412765098773776122/105412765098773776122/posts\" target=\"_blank\"> <img src=\"http://i.imgur.com/EseCwni.png?1\" style=\"height: 70px;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF RIGHT COLUMN FOR SOCIAL ICONS--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF SOCIAL BLOCK--> <!-- START OF FOOTER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#666666\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> We doubled our revenues from the leads acquired with the help of Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Mahmoudou Sidibe, US</a></span> </td> </tr> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> Makes life easy and less cumbersome with smart social inbox. Thanks Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Maya Ross, UK</a></span> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-top: 1px solid #767373;\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#f8f8f8\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>";
            }
            else
            {
                //html = "<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <style type=\"text/css\"> html { width: 100% } ::-moz-selection { background: #eb5600; color: #fff } ::selection { background: #eb5600; color: #fff } body { background-color: #f8f8f8; margin: 0; padding: 0 } .ReadMsgBody { width: 100%; background-color: #f8f8f8 } .ExternalClass { width: 100%; background-color: #f8f8f8 } a { color: #eb5600; text-decoration: none; font-weight: 400; font-style: normal } a:hover { color: #aaa; text-decoration: underline; font-weight: 400; font-style: normal } a.heading-link { text-decoration: none; font-weight: 400; font-style: normal } a.heading-link:hover { text-decoration: none; font-weight: 400; font-style: normal } p, div { margin: 0!important } table { border-collapse: collapse } @media only screen and (max-width: 640px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 440px!important; margin: 0 auto!important } table[class=table_scale] { width: 440px!important; margin: 0 auto!important } td[class=td_scale] { width: 440px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 440px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 400px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } @media only screen and (max-width: 479px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 280px!important; margin: 0 auto!important } table[class=table_scale] { width: 280px!important; margin: 0 auto!important } td[class=td_scale] { width: 280px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 280px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 240px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } </style> <style type=\"text/css\"></style> </head> <body bgcolor=\"#f8f8f8\"> <!-- START OF HEADER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin-top: 20px;\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LOGO IMAGE TABLE--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"padding: 0px; text-transform: uppercase; font-family: Lucida Sans Unicode; color:#666666; font-size:24px; line-height:34px;\"> <span> <a href=\"#\" style=\"color:#eb5600;\"> <img src=\"http://i.imgur.com/sC2o03M.png\" alt=\"logo\" width=\"250\" height=\"55\" border=\"0\" style=\"display: inline;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF LOGO IMAGE TABLE--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF CONTACT TABLE--> <table class=\"full\" align=\"right\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; padding-top: 10px; text-transform: uppercase; font-size: 10px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> call us: +91 74 0631 7771, +91 80 4166 0003</span> </td> </tr> </tbody> </table> <!-- END OF CONTACT TABLE--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF HEADER BLOCK--> <!-- START OF FEATURED AREA BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table class=\"table_scale\" width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\" valign=\"middle\" style=\"padding: 0px;\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> <!-- START OF HEADING--> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: Lucida Sans Unicode; font-size: 32px; color: #ffffff; line-height: 42px;mso-line-height-rule: exactly;\"> <span> Hello I am Rajsekhar</span> </td> </tr> <!-- END OF HEADING--> <!-- START OF Cong--> <tr> <td class=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: calibri; font-size: 18px; color: #ffffff; line-height: 30px;mso-line-height-rule: exactly;\"> <span><strong style=\"color:black\">Email</strong> : rajsekharpatnaik@globussoft.in</span> <br /> <span><strong style=\"color:black\">Subject</strong> : Keep Socioboard</span> <br /> <span><strong style=\"color:black\">Issue level</strong> : lyf</span> <br /> <span><strong style=\"color:black\">Message</strong> : Hello Socioboard :)</td> </tr> <!-- END oF Cong --> <!-- START OF TEXT--> <!-- END OF TEXT--> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> <!--[if gte mso 9]> </v:textbox> </v:rect> <![endif]--> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF FEATURED AREA BLOCK--> <!-- START OF SOCIAL BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ededed\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LEFT COLUMN FOR HEADING--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"margin: 0; text-transform: uppercase; font-size: 20px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> FOLLOW US ONLINE:</span> </td> </tr> </tbody> </table> <!-- END OF LEFT COLUMN FOR HEADING--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF RIGHT COLUMN FOR SOCIAL ICONS--> <table class=\"full\" align=\"right\" width=\"300\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; font-size:14px ; color:#aaaaaa; font-family: Helvetica, Arial, sans-serif; line-height: 100%;\"> <span> <a href=\"https://www.facebook.com/SocioBoard\" target=\"_blank\"> <img src=\"http://i.imgur.com/mrfZQKf.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://twitter.com/Socioboard\" target=\"_blank\"> <img src=\"http://i.imgur.com/gSA8HbM.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://plus.google.com/b/105412765098773776122/105412765098773776122/posts\" target=\"_blank\"> <img src=\"http://i.imgur.com/EseCwni.png?1\" style=\"height: 70px;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF RIGHT COLUMN FOR SOCIAL ICONS--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF SOCIAL BLOCK--> <!-- START OF FOOTER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#666666\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> We doubled our revenues from the leads acquired with the help of Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Mahmoudou Sidibe, US</a></span> </td> </tr> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> Makes life easy and less cumbersome with smart social inbox. Thanks Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Maya Ross, UK</a></span> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-top: 1px solid #767373;\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#f8f8f8\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>";
                html = "<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <style type=\"text/css\"> html { width: 100% } ::-moz-selection { background: #eb5600; color: #fff } ::selection { background: #eb5600; color: #fff } body { background-color: #f8f8f8; margin: 0; padding: 0 } .ReadMsgBody { width: 100%; background-color: #f8f8f8 } .ExternalClass { width: 100%; background-color: #f8f8f8 } a { color: #eb5600; text-decoration: none; font-weight: 400; font-style: normal } a:hover { color: #aaa; text-decoration: underline; font-weight: 400; font-style: normal } a.heading-link { text-decoration: none; font-weight: 400; font-style: normal } a.heading-link:hover { text-decoration: none; font-weight: 400; font-style: normal } p, div { margin: 0!important } table { border-collapse: collapse } @media only screen and (max-width: 640px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 440px!important; margin: 0 auto!important } table[class=table_scale] { width: 440px!important; margin: 0 auto!important } td[class=td_scale] { width: 440px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 440px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 400px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } @media only screen and (max-width: 479px) { table table { width: 100%!important } td[class=full_width] { width: 100%!important } div[class=div_scale] { width: 280px!important; margin: 0 auto!important } table[class=table_scale] { width: 280px!important; margin: 0 auto!important } td[class=td_scale] { width: 280px!important; margin: 0 auto!important } img[class=img_scale] { width: 100%!important; height: auto!important } img[class=divider] { width: 280px!important; height: 2px!important } table[class=spacer] { display: none!important } td[class=spacer] { display: none!important } td[class=center] { text-align: center!important } table[class=full] { width: 240px!important; margin-left: 20px!important; margin-right: 20px!important } img[class=divider] { width: 100%!important; height: 1px!important } } </style> <style type=\"text/css\"></style> </head> <body bgcolor=\"#f8f8f8\"> <!-- START OF HEADER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"margin-top: 20px;\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ffffff\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LOGO IMAGE TABLE--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"padding: 0px; text-transform: uppercase; font-family: Lucida Sans Unicode; color:#666666; font-size:24px; line-height:34px;\"> <span> <a href=\"#\" style=\"color:#eb5600;\"> <img src=\"http://i.imgur.com/sC2o03M.png\" alt=\"logo\" width=\"250\" height=\"55\" border=\"0\" style=\"display: inline;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF LOGO IMAGE TABLE--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF CONTACT TABLE--> <table class=\"full\" align=\"right\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; padding-top: 10px; text-transform: uppercase; font-size: 10px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> call us: +91 74 0631 7771, +91 80 4166 0003</span> </td> </tr> </tbody> </table> <!-- END OF CONTACT TABLE--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ffffff\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF HEADER BLOCK--> <!-- START OF FEATURED AREA BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table class=\"table_scale\" width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" bgcolor=\"#eb5600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\" valign=\"middle\" style=\"padding: 0px;\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> <!-- START OF HEADING--> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: Lucida Sans Unicode; font-size: 32px; color: #ffffff; line-height: 42px;mso-line-height-rule: exactly;\"> <span> Hello I am " + name + "</span> </td> </tr> <!-- END OF HEADING--> <!-- START OF Cong--> <tr> <td class=\"center\" style=\"margin: 0; padding-bottom:15px; margin:0; font-family: calibri; font-size: 18px; color: #ffffff; line-height: 30px;mso-line-height-rule: exactly;\"> <span><strong style=\"color:black\">Email</strong> : " + email + "</span> <br /> <span><strong style=\"color:black\">Subject</strong> : " + sub + "</span> <br /> <span><strong style=\"color:black\">Issue level</strong> : " + issue + "</span> <br /> <span><strong style=\"color:black\">Message</strong> : " + message + "</span></td> </tr> <!-- END oF Cong --> <!-- START OF TEXT--> <!-- END OF TEXT--> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> <!--[if gte mso 9]> </v:textbox> </v:rect> <![endif]--> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF FEATURED AREA BLOCK--> <!-- START OF SOCIAL BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#ededed\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td class=\"spacer\" width=\"30\"></td> <td width=\"540\"> <!-- START OF LEFT COLUMN FOR HEADING--> <table class=\"full\" align=\"left\" width=\"255\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"left\" style=\"margin: 0; text-transform: uppercase; font-size: 20px; color:#666666; font-family: Lucida Sans Unicode; line-height: 30px; mso-line-height-rule: exactly;\"> <span> FOLLOW US ONLINE:</span> </td> </tr> </tbody> </table> <!-- END OF LEFT COLUMN FOR HEADING--> <!-- START OF SPACER--> <table width=\"25\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td width=\"100%\" height=\"30\"></td> </tr> </tbody> </table> <!-- END OF SPACER--> <!-- START OF RIGHT COLUMN FOR SOCIAL ICONS--> <table class=\"full\" align=\"right\" width=\"300\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"right\" style=\"margin: 0; font-size:14px ; color:#aaaaaa; font-family: Helvetica, Arial, sans-serif; line-height: 100%;\"> <span> <a href=\"https://www.facebook.com/SocioBoard\" target=\"_blank\"> <img src=\"http://i.imgur.com/mrfZQKf.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://twitter.com/Socioboard\" target=\"_blank\"> <img src=\"http://i.imgur.com/gSA8HbM.png?1\" style=\"height: 70px;\"> </a>   <a href=\"https://plus.google.com/b/105412765098773776122/105412765098773776122/posts\" target=\"_blank\"> <img src=\"http://i.imgur.com/EseCwni.png?1\" style=\"height: 70px;\"> </a> </span> </td> </tr> </tbody> </table> <!-- END OF RIGHT COLUMN FOR SOCIAL ICONS--> </td> <td class=\"spacer\" width=\"30\"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#ededed\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- END OF SOCIAL BLOCK--> <!-- START OF FOOTER BLOCK--> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> <table class=\"table_scale\" width=\"600\" bgcolor=\"#666666\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"600\"> <table class=\"full\" align=\"center\" width=\"540\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;\"> <tbody> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> We doubled our revenues from the leads acquired with the help of Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Mahmoudou Sidibe, US</a></span> </td> </tr> <tr> <td class=\"center\" align=\"center\" style=\"margin: 0; font-size:12px ; color:#ededed; font-family: Helvetica, Arial, sans-serif; line-height: 18px;\"> <span> Makes life easy and less cumbersome with smart social inbox. Thanks Socioboard. <a target=\"_blank\" href=\"#\" style=\"color:#FDAA7A;\"> - Maya Ross, UK</a></span> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!-- START OF VERTICAL SPACER--> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <!-- END OF VERTICAL SPACER--> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <table align=\"center\" bgcolor=\"#f8f8f8\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td valign=\"top\" width=\"100%\"> <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\"> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border-top: 1px solid #767373;\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#666666\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"20\"> </td> </tr> </tbody> </table> <table bgcolor=\"#f8f8f8\" class=\"table_scale\" width=\"600\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"> <tbody> <tr> <td width=\"100%\" height=\"30\"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </body> </html>";
            }
            //_emailSender.SendMailSendGrid(_appSettings.socioUserFromMail, "", "rajsekharpatnaik@globussoft.in", "", "", _appSettings.getInTouchSubject, html, _appSettings.SendgridUserName, _appSettings.SendGridPassword);
            _emailSender.SendMailSendGrid(_appSettings.socioUserFromMail, "", _appSettings.getInTouchToMail, "", _appSettings.getInTouchToMailCc, _appSettings.getInTouchSubject, html, _appSettings.SendgridUserName, _appSettings.SendGridPassword);
            return Ok();
        }
    }
}
