if (e.CommandName == "Send" ) { DataSet _dsSubscribersList = new DataSet (); _dsSubscribersList = _objNL.GetSubscribersList(); int count = 0; if (_dsSubscribersList.Tables.Count > 0 && _dsSubscribersList.Tables[0].Rows.Count > 0) { DataSet _dsNewsletter = new DataSet (); _dsNewsletter = _objNL.GetNewsLetterDetailsByNewsletterID( Convert .ToInt32(e.CommandArgument)); if (_dsNewsletter.Tables.Count > 0 && _dsNewsletter.Tables[0].Rows.Count > 0) { try { string From = ConfigurationManager .AppSettings[ "NewslettersSender" ].ToString(); string To = null ; string body = HttpUtility .HtmlDecode(_dsNewsletter.Tables[0].Rows[0][ "NewsBody" ].ToString()); for ( int i = 0; i { To = ( string )_dsSubscribersList.Tables[0].Rows[i][ "Email" ]; body = body.Replace( "[Subscriber Name]" , To); body = body.Replace( "[userid]" , _dsSubscribersList.Tables[0].Rows[0][ "ID" ].ToString()); try { //Sy...