Wednesday, January 16, 2013

Send Email notification when web server is down

If you are managing more then one web server its tough to manage everyone and check ragularly . so i have metion the code which send email notification when the server is down .

It ping production server and check

using System;

using System.Net;

using System.Net.NetworkInformation;

using System.Text;

using System.Configuration;

using System.Net.Mail;


namespace PingServer

{

    public class PingExample

    {

       

        public static void Main(string[] args)

        {

            try

            {

                Ping ping = new Ping();

                string sServers = ConfigurationManager.AppSettings["SERVER_LIST"];

                string [] sServerList = sServers.Split(',');

                foreach (string server in sServerList)

                {

                    try

                    {

                        PingReply reply = ping.Send(server);

                        if (reply.Status == IPStatus.Success)

                            Console.WriteLine("Server " + server + " running");

                        else

                        {

                            Console.WriteLine("Server " + server + " down");

                            SendMail("Server " + server + " down", "SERVER_STATUS", new string[] { "me@mycompany.com", "mymanager@mycompany.com" });

                        }

                    }

                    catch

                    {

                        Console.WriteLine(server + " is not reachable.Exception raised by ping.Send()");

                    }

                }

            }

            catch (Exception ex)

            {

                Console.WriteLine(ex.Message);

            }

            Console.Read();

        }

        public static void SendMail(String message, String subject, String[] notificationList)

        {

            try

            {

                MailMessage MyMessage = new MailMessage();

                MyMessage.From = new MailAddress("me@mycompany.com");

                foreach (String email in notificationList)

                    MyMessage.To.Add(new MailAddress(email));


                MyMessage.Subject = subject;

                MyMessage.Body = message;


                SmtpClient emailClient = new SmtpClient("smtp.me.mycompany.com");

                emailClient.Send(MyMessage);

            }

            catch

            {

            }

        }

    }

}

Friday, January 11, 2013

Godaddy coupan 90% off

GoDaddy Renewal Coupon

GDBXX1026

GoDaddy Domain Renewal Coupon

33% Off .COM renewal coupon -SAVE $5.00
GDBBX1705
 $9.99 .COM renewal per year + $0.18 ICANN fee
33% Off .NET renewal coupon -SAVE $5.00
GDBBX1705
 $9.99 .NET renewal per year + $0.18 ICANN fee
44% Off .ORG renewal coupon -SAVE $8.00
GDBBX1705
  $9.99 .ORG renewal per year + $0.18 ICANN fee

GoDaddy New Domain Coupon

iap199
  $1.99 new domains per year+ $0.18 ICANN fee[1]
iap249a
  $2.49 new domains per year+ $0.18 ICANN fee[1]
iap599v1
  $5.99 new domains per year+ $0.18 ICANN fee
$5.99 price good for the first year of one new or transfer .COM per customer. Additional years or .COMs may be purchased for $9.99 per year. Limit of 5 domains per customer.
- See more at: http://renewalcoupon2014.com/#sthash.MiA4yDJe.dpuf

SiteCore Tutorial - CMS

Sitecore Training -- 1. Introduction
 SMU Sitecore Tutorial 1: Basic Navigation
SMU Sitecore Tutorial 2: Updating Your Page
SMU Sitecore Tutorial 3: Uploading and Inserting Images 
Learn Sitecore 

Netbanking - paypal option not showing in Godaddy

Netbanking - paypal option not showing in Godaddy

Godaddy.Com is providing the following services:-
  • Domain registration
  • Web hosting
  • premium doamin
  • auction
  • bussiness tool
  • ssl certificate to domains
Now net banking and other method will shown...
Netbanking - paypal option not showing in Godaddy

When you go to godaddy.com it automatically select payement option by your ip to make visible other payement option you need to check credit /debit method as you seen above
Netbanking - paypal option not showing in Godaddy
 Make you country as India and currency as INR- Indian Rupees.

Netbanking - paypal option not showing in Godaddy
 Now you can see the total four payment option will be available .

Solution 2
 Or if not coming then also it may be because of this -
If you do not have any other options available, it may be that you are using a promotional code that is not valid with all payment types. In order to make sure, please contact billing@godaddy.com directly. 

Thursday, January 10, 2013

Increase Blog Page rank - Show in google

Increase Blog Page rank - Show in google  it is time taking work but you guys can done it easily by keeping the following thing while doing any activity related to blog : -

1. Get Incoming Links from High Quality Related Sites : - Go and submit your link in high quality  related site means whose pr is much more then you...Such as http://sandeep-chourasia.blogspot.in/ .

2.Remember to Use SEO Techniques
3.Write Original Content :- Do not copy content form anywhere , it should be original .

4. Don't Go Link Crazy : - once you are getting traffic don't give link to everyone and evrywhere google does'nt check quantity it goes for quality of link.

5.Write BestContent