Click here to Skip to main content
15,902,896 members
Home / Discussions / C#
   

C#

 
JokeRe: subrow Pin
Seishin#28-Feb-07 4:16
Seishin#28-Feb-07 4:16 
QuestionDocking Toolbar [modified] Pin
hiremath7128-Feb-07 0:02
hiremath7128-Feb-07 0:02 
AnswerRe: Docking Toolbar Pin
Seishin#28-Feb-07 1:16
Seishin#28-Feb-07 1:16 
GeneralRe: Docking Toolbar Pin
hiremath7128-Feb-07 2:47
hiremath7128-Feb-07 2:47 
GeneralRe: Docking Toolbar Pin
Pete O'Hanlon28-Feb-07 2:51
mvePete O'Hanlon28-Feb-07 2:51 
GeneralRe: Docking Toolbar Pin
hiremath7128-Feb-07 2:56
hiremath7128-Feb-07 2:56 
GeneralRe: Docking Toolbar Pin
hiremath7128-Feb-07 2:57
hiremath7128-Feb-07 2:57 
Questionemail - error: remote certificate invalid Pin
steve_rm27-Feb-07 23:50
steve_rm27-Feb-07 23:50 
Hello,

I have created an email application.

Error Message: The remote certificate is invalid according to the validation procedure.

But keep on getting this error message each time I try and send. The remote smtp is working ok as that has been tested using outlook, so i think something to do with my code, or something i have not done.

I have also tested this code using gmail's smtp server:
gmail@smtp.com using my gmail account details. Sent e-mail ok.

The code i am using to connect to a remote server is this below. can anyone tell me if I have done something wrong.

<br />
 private void button1_Click(object sender, EventArgs e)<br />
        {<br />
            MailAddress msgTo = new MailAddress("steve1_rm@hotmail.com");<br />
            MailAddress msgFrom = new MailAddress("Steve1.rm@gmail.com");<br />
            MailAddress msgSender = new MailAddress("steve1.rm@gmail.com");<br />
<br />
            MailMessage mailMsg = new MailMessage();<br />
            mailMsg.To.Add(msgTo);<br />
            mailMsg.From = msgFrom;<br />
            mailMsg.Sender = msgSender;<br />
<br />
            SmtpClient client = new SmtpClient("xx.xxx.xx.xxx", 25);<br />
            client.Credentials = new System.Net.NetworkCredential("xxxxx@smtp.xxxx", "xxxx");<br />
            client.EnableSsl = true;<br />
<br />
            try<br />
            {<br />
                client.Send(mailMsg);<br />
            }<br />
            catch(SmtpException ex)<br />
            {<br />
                MessageBox.Show(ex.Message);<br />
            }<br />
            catch(Exception ex)<br />
            {<br />
                MessageBox.Show(ex.Message);   <br />
            }<br />
        }<br />


Many thanks if you can help me with this problem,

Thanks,

Steve
QuestionKeyDown help needed! Pin
Pincus Jr.27-Feb-07 23:49
Pincus Jr.27-Feb-07 23:49 
AnswerRe: KeyDown help needed! Pin
Harini N K27-Feb-07 23:59
Harini N K27-Feb-07 23:59 
GeneralRe: KeyDown help needed! Pin
Pincus Jr.28-Feb-07 1:15
Pincus Jr.28-Feb-07 1:15 
AnswerRe: KeyDown help needed! [modified] Pin
Martin#28-Feb-07 1:31
Martin#28-Feb-07 1:31 
GeneralRe: KeyDown help needed! Pin
Pincus Jr.28-Feb-07 10:19
Pincus Jr.28-Feb-07 10:19 
QuestionUSER CONTROL FOCUS PROBLME ......PLZ. HELP ME [modified] Pin
meerraj27-Feb-07 22:56
meerraj27-Feb-07 22:56 
AnswerRe: USER CONTROL FOCUS PROBLME ......PLZ. HELP ME Pin
Pete O'Hanlon27-Feb-07 23:25
mvePete O'Hanlon27-Feb-07 23:25 
AnswerRe: USER CONTROL FOCUS PROBLME ......PLZ. HELP ME Pin
Pete O'Hanlon28-Feb-07 1:25
mvePete O'Hanlon28-Feb-07 1:25 
Questionhow can don't show application in task manager? Pin
B.A27-Feb-07 22:32
B.A27-Feb-07 22:32 
AnswerRe: how can don't show application in task manager? Pin
Tamimi - Code27-Feb-07 22:48
Tamimi - Code27-Feb-07 22:48 
GeneralRe: how can don't show application in task manager? Pin
sam#27-Feb-07 23:15
sam#27-Feb-07 23:15 
GeneralRe: how can don't show application in task manager? Pin
Tamimi - Code27-Feb-07 23:33
Tamimi - Code27-Feb-07 23:33 
AnswerRe: how can don't show application in task manager? Pin
Pete O'Hanlon27-Feb-07 23:22
mvePete O'Hanlon27-Feb-07 23:22 
GeneralRe: how can don't show application in task manager? Pin
Dan Neely28-Feb-07 2:04
Dan Neely28-Feb-07 2:04 
GeneralRe: how can don't show application in task manager? Pin
ednrgc28-Feb-07 3:40
ednrgc28-Feb-07 3:40 
GeneralRe: how can don't show application in task manager? Pin
Pete O'Hanlon28-Feb-07 10:36
mvePete O'Hanlon28-Feb-07 10:36 
Questionhow to secure erase/wipe a file ? Pin
Radu Sorin27-Feb-07 21:58
Radu Sorin27-Feb-07 21:58 

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.