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

C#

 
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 
AnswerRe: Custom Coloumn Headers? Pin
Lev Danielyan26-Dec-08 7:16
Lev Danielyan26-Dec-08 7:16 
GeneralRe: Custom Coloumn Headers? Pin
cobalt-rose27-Dec-08 4:53
cobalt-rose27-Dec-08 4:53 
GeneralRe: Custom Coloumn Headers? Pin
Lev Danielyan27-Dec-08 6:00
Lev Danielyan27-Dec-08 6:00 
GeneralRe: Custom Coloumn Headers? Pin
cobalt-rose30-Dec-08 12:11
cobalt-rose30-Dec-08 12:11 
GeneralRe: Custom Coloumn Headers? Pin
Lev Danielyan30-Dec-08 20:39
Lev Danielyan30-Dec-08 20:39 
QuestionWeb Browser.How to open new window in existent opened browser. Pin
aleXXXka26-Dec-08 4:35
aleXXXka26-Dec-08 4:35 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Aman Bhullar26-Dec-08 5:47
Aman Bhullar26-Dec-08 5:47 
AnswerRe: Web Browser.How to open new window in existent opened browser. Pin
Lev Danielyan26-Dec-08 7:20
Lev Danielyan26-Dec-08 7:20 
GeneralRe: Web Browser.How to open new window in existent opened browser. Pin
aleXXXka27-Dec-08 1:13
aleXXXka27-Dec-08 1:13 
QuestionmenuItem with Shortcut and Icon Pin
mirko8626-Dec-08 4:23
mirko8626-Dec-08 4:23 

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.