Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Unescape" ISO string Pin
PIEBALDconsult18-Jan-10 12:40
mvePIEBALDconsult18-Jan-10 12:40 
AnswerAnswer: But I feel dirty, and not in a good way..... Pin
Keith Barrow18-Jan-10 5:27
professionalKeith Barrow18-Jan-10 5:27 
AnswerRe: "Unescape" ISO string Pin
mav.northwind7-May-10 4:51
mav.northwind7-May-10 4:51 
QuestionExecute and exe from WinService in C# [modified] Pin
Sunil G18-Jan-10 0:40
Sunil G18-Jan-10 0:40 
AnswerRe: Execute and exe from WinService in C# Pin
#realJSOP18-Jan-10 1:03
mve#realJSOP18-Jan-10 1:03 
GeneralRe: Execute and exe from WinService in C# Pin
Sunil G18-Jan-10 1:08
Sunil G18-Jan-10 1:08 
GeneralRe: Execute and exe from WinService in C# Pin
#realJSOP18-Jan-10 2:49
mve#realJSOP18-Jan-10 2:49 
GeneralRe: Execute and exe from WinService in C# Pin
Sunil G18-Jan-10 2:53
Sunil G18-Jan-10 2:53 
GeneralRe: Execute and exe from WinService in C# Pin
Md. Marufuzzaman18-Jan-10 3:33
professionalMd. Marufuzzaman18-Jan-10 3:33 
GeneralRe: Execute and exe from WinService in C# Pin
#realJSOP18-Jan-10 3:35
mve#realJSOP18-Jan-10 3:35 
QuestionWriting to Excel without installation of MS Excel Pin
Priya Prk18-Jan-10 0:11
Priya Prk18-Jan-10 0:11 
AnswerRe: Writing to Excel without installation of MS Excel Pin
OriginalGriff18-Jan-10 0:17
mveOriginalGriff18-Jan-10 0:17 
GeneralRe: Writing to Excel without installation of MS Excel Pin
Priya Prk18-Jan-10 1:03
Priya Prk18-Jan-10 1:03 
GeneralRe: Writing to Excel without installation of MS Excel Pin
OriginalGriff18-Jan-10 1:37
mveOriginalGriff18-Jan-10 1:37 
AnswerRe: Writing to Excel without installation of MS Excel Pin
Dan Mos18-Jan-10 7:39
Dan Mos18-Jan-10 7:39 
AnswerRe: Writing to Excel without installation of MS Excel Pin
DaveyM6918-Jan-10 12:25
professionalDaveyM6918-Jan-10 12:25 
QuestionError while sending mail using System.Net.Mail in C# Pin
WinCrs17-Jan-10 23:09
WinCrs17-Jan-10 23:09 
Private Void SendMail()
{
MailMessage mMsg = new MailMessage();
SmtpClient sClient = new SmtpClient();
string sHtmlBody = "Test mail ";
AlternateView avHtml = AlternateView.CreateAlternateViewFromString(sHtmlBody);
NetworkCredential crMail = new NetworkCredential();
mMsg.AlternateViews.Add(avHtml);
mMsg.From = new MailAddress("rishi@wi.com","Rishi");
mMsg.To.Add("test@wi.com","Test");
mMsg.Subject = "Test Mail");

//This is my actual local mail server ip, port and username password
//which I've already configured in my outlook and it is working fine.

//-------------------------------
sClient.Host = "192.168.1.7";
sClient.Port = 26;
crMail.UserName = "rishi@wi.com";
crMail.Password = "12345";
//-------------------------------

sClient.UseDefaultCredentials = False;
sClient.Credentials = crMail;
sClient.Send(mMsg);
}

When call this function this shows the error:

"Mail box unavailable. The server response was: No Such User"

There is no issue with this smtp details the same already I've configured in my MS outlook. And also it working fine in VB6 program using CDO.

My requirement is I want to send mails through SMTP which may available in locally or globally.

If anybody have an idea with this pls reply here..

Thanks & Regards,
Rishi

WinCrs

AnswerRe: Error while sending mail using System.Net.Mail in C# Pin
Md. Marufuzzaman18-Jan-10 3:46
professionalMd. Marufuzzaman18-Jan-10 3:46 
QuestionEnable button on form1 while inside form2 Pin
tonyonlinux17-Jan-10 22:35
tonyonlinux17-Jan-10 22:35 
AnswerRe: Enable button on form1 while inside form2 Pin
OriginalGriff17-Jan-10 23:20
mveOriginalGriff17-Jan-10 23:20 
AnswerRe: Enable button on form1 while inside form2 Pin
dan!sh 17-Jan-10 23:22
professional dan!sh 17-Jan-10 23:22 
AnswerRe: Enable button on form1 while inside form2 Pin
April Fans18-Jan-10 15:25
April Fans18-Jan-10 15:25 
GeneralRe: Enable button on form1 while inside form2 Pin
tonyonlinux18-Jan-10 17:24
tonyonlinux18-Jan-10 17:24 
QuestionHow can i find all open / active windows ? Pin
Yanshof17-Jan-10 22:22
Yanshof17-Jan-10 22:22 
AnswerRe: How can i find all open / active windows ? Pin
dan!sh 17-Jan-10 23:18
professional dan!sh 17-Jan-10 23:18 

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.