Click here to Skip to main content
15,900,511 members
Home / Discussions / C#
   

C#

 
General#ifdef _DEBUG equivalent in C# Pin
paulb6-Jun-02 18:11
paulb6-Jun-02 18:11 
GeneralRe: #ifdef _DEBUG equivalent in C# Pin
James T. Johnson6-Jun-02 18:34
James T. Johnson6-Jun-02 18:34 
GeneralRemoting + Singletons Pin
Mauricio Ritter6-Jun-02 16:19
Mauricio Ritter6-Jun-02 16:19 
GeneralRe: Remoting + Singletons Pin
James T. Johnson6-Jun-02 18:59
James T. Johnson6-Jun-02 18:59 
GeneralRe: Remoting + Singletons Pin
Mauricio Ritter7-Jun-02 1:26
Mauricio Ritter7-Jun-02 1:26 
GeneralRe: Remoting + Singletons Pin
Mauricio Ritter7-Jun-02 1:57
Mauricio Ritter7-Jun-02 1:57 
GeneralRe: Remoting + Singletons Pin
James T. Johnson7-Jun-02 8:22
James T. Johnson7-Jun-02 8:22 
GeneralSending mail via SMTP server Pin
6-Jun-02 7:47
suss6-Jun-02 7:47 
Hi!
I need to use SMTP server to send mail ...
I am trying to use program written by Agus Kurniawan "Sending mail via SMTP.." posted on this site... Code looks to be just fine .. but I am receiving error exception :


TcpClient SmtpServ = new TcpClient(ServSMTP.Text,25); string Data;
byte[] szData;

try
{
// initialization
NetworkStream NetStrm = SmtpServ.GetStream();
StreamReader RdStrm= new StreamReader(SmtpServ.GetStream());
LogList.Items.Add(RdStrm.ReadLine());

On the last line of listed code it bombs :

Value cannot be Null
Parameter name: item

Any suggestions what am i doing wrong?
SMTP server that i am trying to access: mail.mycompany.com

Please help
GeneralRe: Sending mail via SMTP server Pin
Sebastian Weber6-Jun-02 9:40
Sebastian Weber6-Jun-02 9:40 
GeneralRe: Sending mail via SMTP server Pin
James T. Johnson6-Jun-02 9:57
James T. Johnson6-Jun-02 9:57 
GeneralRe: Sending mail via SMTP server Pin
7-Jun-02 3:36
suss7-Jun-02 3:36 
GeneralRead file access permission and other info. Pin
serberwww5-Jun-02 20:48
serberwww5-Jun-02 20:48 
GeneralRe: Read file access permission and other info. Pin
Mazdak5-Jun-02 22:44
Mazdak5-Jun-02 22:44 
GeneralRe: Read file access permission and other info. Pin
serberwww5-Jun-02 23:18
serberwww5-Jun-02 23:18 
GeneralRe: Read file access permission and other info. Pin
Mazdak5-Jun-02 23:33
Mazdak5-Jun-02 23:33 
GeneralRe: Read file access permission and other info. Pin
James T. Johnson6-Jun-02 19:02
James T. Johnson6-Jun-02 19:02 
GeneralRe: Read file access permission and other info. Pin
serberwww6-Jun-02 20:28
serberwww6-Jun-02 20:28 
QuestionMSCOREE.DLL? Pin
5-Jun-02 15:03
suss5-Jun-02 15:03 
AnswerRe: MSCOREE.DLL? Pin
RichB5-Jun-02 15:24
RichB5-Jun-02 15:24 
AnswerRe: MSCOREE.DLL? Pin
Rama Krishna Vavilala5-Jun-02 15:34
Rama Krishna Vavilala5-Jun-02 15:34 
GeneralGDI+ Grab Handles Question Pin
RichB5-Jun-02 14:44
RichB5-Jun-02 14:44 
QuestionCan I extend the System.Drawing.Image class Pin
franck_alain5-Jun-02 13:32
franck_alain5-Jun-02 13:32 
AnswerRe: Can I extend the System.Drawing.Image class Pin
Nick Parker5-Jun-02 17:18
protectorNick Parker5-Jun-02 17:18 
GeneralTreeView node right-clicked is not the "selected" node... Pin
rhoward5-Jun-02 10:43
professionalrhoward5-Jun-02 10:43 
GeneralRe: TreeView node right-clicked is not the "selected" node... Pin
James T. Johnson5-Jun-02 11:07
James T. Johnson5-Jun-02 11:07 

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.