ali raza

C#, .Net ,Asp.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 http://www.careermideast.com/en/default.aspx

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

hi i used following code

MailMessage message = new MailMessage();

message.To = "myemailaccount@yahoo.com";

message.From = "myemailaccount@thecrystalrosary.com";
message.Subject = "Testing Internet SmtpMail";
message.BodyFormat = MailFormat.Html;

message.Body = "body";

message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserver", "smtp.thecrystalrosary.com");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", 25);
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing", 2); //2 to send using SMTP over the network
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1); //1 = basic authentication
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "username");
message.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");

try
{
SmtpMail.Send(message);
}
catch (Exception e)
{
// trap here
}

Struggle

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