Click here to Skip to main content
15,921,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: datagridview using c# Pin
kulandaivel_mca200727-Dec-08 0:06
kulandaivel_mca200727-Dec-08 0:06 
AnswerRe: datagridview using c# Pin
andhare27-Dec-08 1:44
andhare27-Dec-08 1:44 
QuestionHow to read Hebrew letters with StreamReader Pin
Admin88726-Dec-08 22:39
Admin88726-Dec-08 22:39 
AnswerRe: How to read Hebrew letters with StreamReader Pin
Lev Danielyan27-Dec-08 0:59
Lev Danielyan27-Dec-08 0:59 
AnswerRe: How to read Hebrew letters with StreamReader Pin
aleXXXka27-Dec-08 1:10
aleXXXka27-Dec-08 1:10 
GeneralRe: How to read Hebrew letters with StreamReader Pin
Lev Danielyan27-Dec-08 1:14
Lev Danielyan27-Dec-08 1:14 
GeneralRe: How to read Hebrew letters with StreamReader Pin
aleXXXka27-Dec-08 1:38
aleXXXka27-Dec-08 1:38 
Questionretrival of password problem Pin
tejesh12326-Dec-08 22:04
tejesh12326-Dec-08 22:04 
AnswerRe: retrival of password problem Pin
Brij26-Dec-08 23:41
mentorBrij26-Dec-08 23:41 
GeneralRe: retrival of password problem Pin
tejesh12327-Dec-08 1:01
tejesh12327-Dec-08 1:01 
GeneralRe: retrival of password problem Pin
Brij27-Dec-08 1:57
mentorBrij27-Dec-08 1:57 
QuestionRegex Patterns Pin
Muammar©26-Dec-08 18:55
Muammar©26-Dec-08 18:55 
AnswerRe: Regex Patterns Pin
User 665826-Dec-08 23:55
User 665826-Dec-08 23:55 
GeneralRe: Regex Patterns Pin
Muammar©27-Dec-08 1:02
Muammar©27-Dec-08 1:02 
GeneralRe: Regex Patterns Pin
User 665827-Dec-08 1:09
User 665827-Dec-08 1:09 
QuestionHow do I put a control on the non-client area of a form? Pin
James_Zhang26-Dec-08 18:10
James_Zhang26-Dec-08 18:10 
Generalrepost Pin
Luc Pattyn26-Dec-08 18:47
sitebuilderLuc Pattyn26-Dec-08 18:47 
Questionemail sending program issue Pin
George_George26-Dec-08 16:07
George_George26-Dec-08 16:07 
Hello everyone,

I am writing the following program to send a message to my gmail box. There is no

exception, but I can not receive any email in my gmail inbox. Does anyone have any ideas

why?

           MailMessage mailMsg = new MailMessage();
            mailMsg.From = new MailAddress("youremail@example.com");
            mailMsg.To.Add("someone@example.com");
            mailMsg.Subject = "Test subject 2";
            mailMsg.IsBodyHtml = true;
            mailMsg.BodyEncoding = Encoding.UTF8;
            mailMsg.Body = "This email is sent from asp.net code";
            mailMsg.Priority = MailPriority.Normal;
            // Smtp configuration
            SmtpClient client = new SmtpClient();
            client.Credentials = new NetworkCredential("myemailaccount@gmail.com", 

"mypassword");
            client.Port = 587; //or use 465            
            client.Host = "smtp.gmail.com";
            client.EnableSsl = true;
            object userState = mailMsg;
            try
            {
                //you can also call client.Send(msg)
                // client.SendAsync(mailMsg, userState);
                client.Send(mailMsg);
            }
            catch (SmtpException ex)
            {
                Console.WriteLine(ex.ToString());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }

            return;


thanks in advance,
George
AnswerRe: email sending program issue Pin
Tamer Oz26-Dec-08 20:04
Tamer Oz26-Dec-08 20:04 
GeneralRe: email sending program issue Pin
George_George27-Dec-08 1:11
George_George27-Dec-08 1:11 
Questionunicode Pin
VyTrx26-Dec-08 8:33
VyTrx26-Dec-08 8:33 
AnswerRe: unicode Pin
Christian Graus26-Dec-08 12:10
protectorChristian Graus26-Dec-08 12:10 
QuestionBinding data to specific rows Pin
kensai26-Dec-08 7:46
kensai26-Dec-08 7:46 
QuestionCustom Coloumn Headers? [modified] Pin
cobalt-rose26-Dec-08 5:42
cobalt-rose26-Dec-08 5:42 
AnswerRe: Custom Coloumn Headers? Pin
Wendelius26-Dec-08 7:16
mentorWendelius26-Dec-08 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.