Click here to Skip to main content
15,884,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help: Can't format string using String.Format Pin
ignrod10-Aug-10 9:42
ignrod10-Aug-10 9:42 
AnswerRe: Help: Can't format string using String.Format Pin
Martin shooster10-Aug-10 10:17
Martin shooster10-Aug-10 10:17 
AnswerRe: Help: Can't format string using String.Format Pin
PIEBALDconsult10-Aug-10 17:24
mvePIEBALDconsult10-Aug-10 17:24 
AnswerRe: Help: Can't format string using String.Format Pin
Luc Pattyn10-Aug-10 17:51
sitebuilderLuc Pattyn10-Aug-10 17:51 
GeneralRe: Help: Can't format string using String.Format Pin
PIEBALDconsult11-Aug-10 3:09
mvePIEBALDconsult11-Aug-10 3:09 
GeneralRe: Help: Can't format string using String.Format Pin
Luc Pattyn11-Aug-10 3:25
sitebuilderLuc Pattyn11-Aug-10 3:25 
GeneralRe: Help: Can't format string using String.Format Pin
PIEBALDconsult11-Aug-10 16:17
mvePIEBALDconsult11-Aug-10 16:17 
QuestionEmail - invalid remote certificate Pin
Running Fool10-Aug-10 8:13
Running Fool10-Aug-10 8:13 
I am writing a program to send email. When I send from my own email accounts everything works! When I send from my company email or any other emails from the company I get the error: “The remote certificate is invalid according to the validation procedure”
The code looks like this:
<br />
mailObj = new SmtpClient("smtp. MyCompany.com", 25);<br />
from = new MailAddress("xxxxxx@MyCompany.com", "Chris H");<br />
AuthInfo = new NetworkCredential(from.Address, "xxxxxxxxxxx");<br />
to = new MailAddress("xxxxxxxx@hotmail.com", "Chris H");<br />
MailMessage mail = new MailMessage(from, to);<br />
mail.Subject = "Testing";<br />
mail.Body = "Hello Everybody";<br />
<br />
mailObj.UseDefaultCredentials = false;<br />
mailObj.EnableSsl = true;<br />
mailObj.Credentials = AuthInfo;<br />
mailObj.Send(mail);<br />


I have noticed that in our Outlook account settings - More Settings - Outgoing server we need to check the My outgoing server (SMTP) requires authentication and "Use same settings as my incoming mail server"

This would make me think my program should be able to get the authentication info need from the incoming mail server but how??

Any words of wisdom would be appreciated.
AnswerRe: Email - invalid remote certificate Pin
Matt Meyer10-Aug-10 9:13
Matt Meyer10-Aug-10 9:13 
AnswerRe: Email - invalid remote certificate Pin
DaveyM6910-Aug-10 11:22
professionalDaveyM6910-Aug-10 11:22 
GeneralRe: Email - invalid remote certificate Pin
Running Fool10-Aug-10 11:39
Running Fool10-Aug-10 11:39 
GeneralRe: Email - invalid remote certificate Pin
DaveyM6910-Aug-10 12:12
professionalDaveyM6910-Aug-10 12:12 
QuestionMerging two datatables Pin
norjali10-Aug-10 6:28
norjali10-Aug-10 6:28 
AnswerRe: Merging two datatables Pin
Ennis Ray Lynch, Jr.10-Aug-10 6:38
Ennis Ray Lynch, Jr.10-Aug-10 6:38 
GeneralRe: Merging two datatables Pin
norjali10-Aug-10 6:48
norjali10-Aug-10 6:48 
GeneralRe: Merging two datatables Pin
Ennis Ray Lynch, Jr.10-Aug-10 8:33
Ennis Ray Lynch, Jr.10-Aug-10 8:33 
GeneralRe: Merging two datatables Pin
SimulationofSai10-Aug-10 15:01
SimulationofSai10-Aug-10 15:01 
AnswerRe: Merging two datatables Pin
I Believe In GOD10-Aug-10 12:22
I Believe In GOD10-Aug-10 12:22 
AnswerRe: Merging two datatables Pin
SimulationofSai10-Aug-10 15:08
SimulationofSai10-Aug-10 15:08 
AnswerRe: Merging two datatables Pin
gaurav_verma_mca10-Aug-10 21:23
gaurav_verma_mca10-Aug-10 21:23 
QuestionRun as system and logoff user "USER" Pin
SummerBulb10-Aug-10 5:10
SummerBulb10-Aug-10 5:10 
AnswerRe: Run as system and logoff user "USER" Pin
cor287910-Aug-10 8:24
cor287910-Aug-10 8:24 
AnswerRe: Run as system and logoff user "USER" Pin
SimulationofSai10-Aug-10 15:14
SimulationofSai10-Aug-10 15:14 
QuestionCan someone help me create a setup project for an Excel add-in Pin
euroazn10-Aug-10 4:32
euroazn10-Aug-10 4:32 
QuestionContext Menu Location [Solved] Pin
ignrod10-Aug-10 3:34
ignrod10-Aug-10 3:34 

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.