Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: CMD.EXE from C# .net Pin
natsuyaki8-May-08 2:11
natsuyaki8-May-08 2:11 
QuestionmyProcess.StandardOutput Issue Pin
Harvey Saayman8-May-08 1:22
Harvey Saayman8-May-08 1:22 
AnswerRe: myProcess.StandardOutput Issue Pin
natsuyaki8-May-08 1:45
natsuyaki8-May-08 1:45 
QuestionPen Drive Pin
Bhim Prakash Singh8-May-08 0:53
Bhim Prakash Singh8-May-08 0:53 
AnswerRe: Pen Drive Pin
Christian Graus8-May-08 1:13
protectorChristian Graus8-May-08 1:13 
AnswerRe: Pen Drive Pin
Spunky Coder8-May-08 1:13
Spunky Coder8-May-08 1:13 
QuestionSending a E-mail in C# Pin
imnotso#8-May-08 0:21
imnotso#8-May-08 0:21 
AnswerRe: Sending a E-mail in C# Pin
N a v a n e e t h8-May-08 0:28
N a v a n e e t h8-May-08 0:28 
imnotso# wrote:
MailMessage mail = new MailMessage();
mail.To = txtTo.Text;
mail.From = txtFrom.Text;
mail.Subject = txtSubject.Text;
mail.Body = txtBody.Text;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(mail);


This is obsolete now. Use classes in System.Net.Mail namespace. You can configure System.Net.Mail settings on the app.config file and put the server name as localhost. Stop local SMTP server and set mail delivery type as PickupDirectoryFromIis which will deliver mails to the pickup directory.

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

GeneralRe: Sending a E-mail in C# Pin
imnotso#8-May-08 0:47
imnotso#8-May-08 0:47 
GeneralRe: Sending a E-mail in C# Pin
imnotso#8-May-08 1:09
imnotso#8-May-08 1:09 
GeneralRe: Sending a E-mail in C# Pin
Christian Graus8-May-08 1:11
protectorChristian Graus8-May-08 1:11 
GeneralRe: Sending a E-mail in C# Pin
imnotso#8-May-08 1:43
imnotso#8-May-08 1:43 
GeneralRe: Sending a E-mail in C# Pin
Christian Graus8-May-08 1:48
protectorChristian Graus8-May-08 1:48 
GeneralRe: Sending a E-mail in C# Pin
imnotso#8-May-08 1:57
imnotso#8-May-08 1:57 
GeneralRe: Sending a E-mail in C# Pin
Christian Graus8-May-08 2:17
protectorChristian Graus8-May-08 2:17 
GeneralRe: Sending a E-mail in C# Pin
N a v a n e e t h8-May-08 2:59
N a v a n e e t h8-May-08 2:59 
GeneralRe: Sending a E-mail in C# Pin
imnotso#8-May-08 3:14
imnotso#8-May-08 3:14 
GeneralRe: Sending a E-mail in C# Pin
N a v a n e e t h8-May-08 3:27
N a v a n e e t h8-May-08 3:27 
AnswerRe: Sending a E-mail in C# Pin
RedHotFunk8-May-08 13:57
RedHotFunk8-May-08 13:57 
Questionwhat is regular expression correponding to this string [Select]? Pin
syamooo8-May-08 0:20
syamooo8-May-08 0:20 
AnswerRe: what is regular expression correponding to this string [Select]? Pin
Christian Graus8-May-08 1:11
protectorChristian Graus8-May-08 1:11 
AnswerRe: what is regular expression correponding to this string [Select]? Pin
Ashfield8-May-08 1:12
Ashfield8-May-08 1:12 
QuestionXML message generation Pin
George_George7-May-08 23:25
George_George7-May-08 23:25 
AnswerRe: XML message generation Pin
natsuyaki7-May-08 23:40
natsuyaki7-May-08 23:40 
GeneralRe: XML message generation Pin
George_George7-May-08 23:48
George_George7-May-08 23:48 

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.