Click here to Skip to main content
16,013,440 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating calendar in c# Pin
nauty16-May-06 2:18
nauty16-May-06 2:18 
GeneralRe: Creating calendar in c# Pin
coolestCoder16-May-06 3:24
coolestCoder16-May-06 3:24 
AnswerRe: Creating calendar in c# Pin
leppie15-May-06 21:14
leppie15-May-06 21:14 
AnswerRe: Creating calendar in c# Pin
papa198015-May-06 21:32
papa198015-May-06 21:32 
Questionstring to char... Pin
Prinz Ryoiji15-May-06 20:49
Prinz Ryoiji15-May-06 20:49 
AnswerRe: string to char... Pin
coolestCoder15-May-06 21:04
coolestCoder15-May-06 21:04 
AnswerRe: string to char... Pin
Guffa15-May-06 21:28
Guffa15-May-06 21:28 
QuestionProblem Sending mail from C# Pin
coolestCoder15-May-06 20:44
coolestCoder15-May-06 20:44 
Hi,
I am trying to send mails from my c# windows application. For this i have added reference to the web namespace and am using the SmtpMail class. But when i run the application it gives me an error that Cannot contact the Smtp Server or sometimes it gives an error that the Smtp server not found.
I think my Smtp server may not be configured properly to send mails. Can any body provide guidance on this issue.
My code goes like this -

SmtpMail.SmtpServer = <my pc name>
SmtpMail.Send(from, mailto, subject, body)

The arguments will be taken from text controls on the form and passed in to the variables "from","mailto",etc...


I hope somebody suggests me the solution. I am sure that the code must be working, but the smtp server might be not configured properly.

Anant Y. Kulkarni
AnswerRe: Problem Sending mail from C# Pin
Corinna John15-May-06 21:35
Corinna John15-May-06 21:35 
GeneralRe: Problem Sending mail from C# Pin
V.V.Thakur15-May-06 22:11
V.V.Thakur15-May-06 22:11 
GeneralRe: Problem Sending mail from C# Pin
coolestCoder15-May-06 22:42
coolestCoder15-May-06 22:42 
GeneralSaving mail from C# Pin
NortonC15-May-06 22:44
NortonC15-May-06 22:44 
GeneralRe: Saving mail from C# Pin
coolestCoder15-May-06 22:55
coolestCoder15-May-06 22:55 
GeneralRe: Saving mail from C# Pin
NortonC15-May-06 23:12
NortonC15-May-06 23:12 
GeneralRe: Saving mail from C# Pin
coolestCoder16-May-06 0:31
coolestCoder16-May-06 0:31 
GeneralRe: Problem Sending mail from C# Pin
coolestCoder15-May-06 22:40
coolestCoder15-May-06 22:40 
QuestiontheForm.InvokeRequired or theElement.InvokeRequired Pin
M-200015-May-06 20:24
M-200015-May-06 20:24 
AnswerRe: theForm.InvokeRequired or theElement.InvokeRequired Pin
Robert Rohde15-May-06 21:14
Robert Rohde15-May-06 21:14 
GeneralRe: theForm.InvokeRequired or theElement.InvokeRequired Pin
leppie15-May-06 22:21
leppie15-May-06 22:21 
AnswerRe: theForm.InvokeRequired or theElement.InvokeRequired Pin
leppie15-May-06 21:16
leppie15-May-06 21:16 
QuestionHow to block screen saver 's Pin
ranandbe15-May-06 20:15
ranandbe15-May-06 20:15 
AnswerRe: How to block screen saver 's Pin
Cristoff15-May-06 23:49
Cristoff15-May-06 23:49 
QuestionAbout mobile application Pin
shamsh321015-May-06 20:11
shamsh321015-May-06 20:11 
Questionurgent c# and ASP.Net Pin
santoshD15-May-06 19:12
santoshD15-May-06 19:12 
AnswerRe: urgent c# and ASP.Net Pin
Christian Graus15-May-06 20:09
protectorChristian Graus15-May-06 20:09 

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.