Pages

Showing posts with label Google Profile. Show all posts
Showing posts with label Google Profile. Show all posts

Wednesday, July 1, 2009

Sending Email Via Google mail server

Some time we need to send mails to others from our application, and fro this we need to use some free email server like GMAIL. here is the code using that we can use the gmail mail server to send the mails. I am simply specifying the gmail SMTP server name and the Port number in the code.. take a look…



MailMessage mailMessage = new MailMessage();

mailMessage.To.Add(”test@test.com”);

mailMessage.Subject = “Test”;

mailMessage.Body = “This is a test mail”;

mailMessage.IsBodyHtml = true;

// Create the credentials to login to the gmail account associated with my custom domain

string sendEmailsFrom = “abc@xyz.com”;

string sendEmailsFromPassword = “password”;



NetworkCredential cred = new NetworkCredential(sendEmailsFrom, sendEmailsFromPassword);

SmtpClient mailClient = new SmtpClient(”smtp.gmail.com”, 587);

mailClient.EnableSsl = true;

mailClient.DeliveryMethod = SmtpDeliveryMethod.Network;

mailClient.UseDefaultCredentials = false;

mailClient.Timeout = 30000;

mailClient.Credentials = cred;

mailClient.Send(mailMessage);



Thanks
Anil Kumar Pandey
System Architect
Green Point Technology (India) Ltd.
Mumbai, Maharshtra
INDIA

Thursday, April 23, 2009

Google can search you now!!!!


Good News,

Google has started a new service from today, where  you can upload ur profile.. if some one enters ur name then the name will be shown in the google search result..

This is really a good and intrested service started by goolge , i m very keen to do new thing so i just created my profile in google. so waht are u wating for, create ur own profile now and changed the way google searched you..... Please follow the link http://www.google.com/profiles/

u can see my profile at  http://www.google.com/profiles/sankkrit.

Enjoy :)

Kontera