Click here to Skip to main content
15,897,334 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use some part of .Net framework in my setup package? thanks alot. Pin
Christian Graus1-Sep-09 21:33
protectorChristian Graus1-Sep-09 21:33 
AnswerRe: How to use some part of .Net framework in my setup package? Pin
PIEBALDconsult2-Sep-09 3:47
mvePIEBALDconsult2-Sep-09 3:47 
GeneralRe: How to use some part of .Net framework in my setup package? Pin
saberimanesh2-Sep-09 4:03
saberimanesh2-Sep-09 4:03 
Questionhow to delete mail from mail server using C# Pin
khosnur1-Sep-09 19:25
khosnur1-Sep-09 19:25 
AnswerRe: how to delete mail from mail server using C# Pin
ThatsAlok1-Sep-09 19:50
ThatsAlok1-Sep-09 19:50 
GeneralRe: how to delete mail from mail server using C# Pin
khosnur1-Sep-09 20:38
khosnur1-Sep-09 20:38 
AnswerRe: how to delete mail from mail server using C# Pin
Tamer Oz1-Sep-09 19:55
Tamer Oz1-Sep-09 19:55 
GeneralRe: how to delete mail from mail server using C# Pin
khosnur1-Sep-09 20:43
khosnur1-Sep-09 20:43 
many many thanks
i am using pop3 mail server i programmatically connect the server and the mail ID but it do not delete the mail would u see the code and answer me the fault.

public MAIL_ERROR Connect(string host, int port, string username, string password)
{
try
{
_conn.Host = host;
_conn.Port = port;
_conn.Connect();
System.Threading.Thread.Sleep(_TimeOut);
return Login(username, password);
}
catch (Exception e)
{
System.Diagnostics.Trace.Write(e.ToString());
return MAIL_ERROR.ERROR_CANTCONNECT;
}
}

public MAIL_ERROR DeleteMessage(int id)
{
if (this._state != POP3_STATE.POP3_LOGGEDIN)
{
throw new MailException("You are not logged into the mail server");
}
string ret = "";
SendCommandSynchronous(string.Format("DELE {0}\r\n", id), out ret, false);

if (ret.Contains("OK") == false)
{
throw new MailException(ret);
}
else
{
return MAIL_ERROR.ERROR_NONE;
}
}
GeneralRe: how to delete mail from mail server using C# Pin
Tamer Oz1-Sep-09 20:58
Tamer Oz1-Sep-09 20:58 
GeneralRe: how to delete mail from mail server using C# Pin
khosnur1-Sep-09 21:21
khosnur1-Sep-09 21:21 
GeneralRe: how to delete mail from mail server using C# Pin
Tamer Oz1-Sep-09 21:44
Tamer Oz1-Sep-09 21:44 
GeneralRe: how to delete mail from mail server using C# Pin
khosnur1-Sep-09 20:46
khosnur1-Sep-09 20:46 
QuestionOnPaint Event Pin
Reza Shojaee1-Sep-09 19:03
Reza Shojaee1-Sep-09 19:03 
AnswerRe: OnPaint Event Pin
Christian Graus1-Sep-09 20:56
protectorChristian Graus1-Sep-09 20:56 
Questionconnections Pin
ihe1-Sep-09 18:56
ihe1-Sep-09 18:56 
AnswerRe: connections Pin
Christian Graus1-Sep-09 20:59
protectorChristian Graus1-Sep-09 20:59 
AnswerRe: connections Pin
Ashfield1-Sep-09 21:00
Ashfield1-Sep-09 21:00 
GeneralRe: connections Pin
ihe4-Sep-09 13:21
ihe4-Sep-09 13:21 
GeneralRe: connections Pin
Ashfield5-Sep-09 2:28
Ashfield5-Sep-09 2:28 
QuestionGroup Selection in List View Pin
vhassan1-Sep-09 18:46
vhassan1-Sep-09 18:46 
QuestionConvert xml file to word document Pin
Swetha Srinivasan1-Sep-09 18:46
Swetha Srinivasan1-Sep-09 18:46 
AnswerRe: Convert xml file to word document Pin
Tamer Oz1-Sep-09 19:59
Tamer Oz1-Sep-09 19:59 
GeneralRe: Convert xml file to word document Pin
Swetha Srinivasan1-Sep-09 20:15
Swetha Srinivasan1-Sep-09 20:15 
GeneralRe: Convert xml file to word document Pin
Tamer Oz1-Sep-09 20:27
Tamer Oz1-Sep-09 20:27 
QuestionHere is a stumper.... Pin
JollyMansArt1-Sep-09 17:58
JollyMansArt1-Sep-09 17: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.