ali raza

C#, .Net , and my thoughts

Monthly Archives: November 2008

Gulf job hunting sites

hi all i start planning to go gulf for better career, that’s why i start searching job hunting websites , these are following. I add these one by by

Career Mideast

how to send mail smtp with authentication with web.mail class

hi i used following code

MailMessage message = new MailMessage();

message.To = "";

message.From = "";
message.Subject = "Testing Internet SmtpMail";
message.BodyFormat = MailFormat.Html;

message.Body = "body";

message.Fields.Add("", "");
message.Fields.Add("", 25);
message.Fields.Add("", 2); //2 to send using SMTP over the network
message.Fields.Add("", 1); //1 = basic authentication
message.Fields.Add("", "username");
message.Fields.Add("", "password");

catch (Exception e)
// trap here


Trials in life can be tragedies or triumphs, depending on how we handle them. Triumphs
don’t come without effort.
A biology teacher was teaching his students how a caterpillar turns into a butterfly. He
told the students that in the next couple of hours, the butterfly would struggle to come out
of the cocoon. But no one should help the butterfly. Then he left.
The students were waiting and it happened. The butterfly struggled to get out of the
cocoon, and one of the students took pity on it and decided to help the butterfly out of the
cocoon against the advice of his teacher. He broke the cocoon to help the butterfly so it
didn’t have to struggle anymore. But shortly afterwards the butterfly died.
When the teacher returned, he was told what happened. He explained to this student that
by helping the butterfly, he had actually killed it because it is a law of nature that the
struggle to come out of the cocoon actually helps develop and strengthen its wings. The
boy had deprived the butterfly of its struggle and the butterfly died.
Apply this same principle to our lives. Nothing worthwhile in life comes without a struggle.
As parents we tend to hurt the ones we love most because we don’t allow them to
struggle to gain strength.

Hardwork Helps