Click here to Skip to main content
15,867,453 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How can i find all open / active windows ? Pin
April Fans18-Jan-10 15:27
April Fans18-Jan-10 15:27 
QuestionIs it a Bug ? Pin
Xmen Real 17-Jan-10 22:15
professional Xmen Real 17-Jan-10 22:15 
AnswerRe: Is it a Bug ? Pin
dan!sh 17-Jan-10 22:26
professional dan!sh 17-Jan-10 22:26 
GeneralRe: Is it a Bug ? Pin
Xmen Real 17-Jan-10 23:16
professional Xmen Real 17-Jan-10 23:16 
GeneralRe: Is it a Bug ? Pin
#realJSOP18-Jan-10 0:01
mve#realJSOP18-Jan-10 0:01 
AnswerRe: Is it a Bug ? Pin
OriginalGriff17-Jan-10 23:27
mveOriginalGriff17-Jan-10 23:27 
Questionmynamespace.App app = new mynamespace.App() Pin
V.17-Jan-10 21:42
professionalV.17-Jan-10 21:42 
AnswerRe: mynamespace.App app = new mynamespace.App() Pin
Abhinav S17-Jan-10 22:37
Abhinav S17-Jan-10 22:37 
GeneralRe: mynamespace.App app = new mynamespace.App() Pin
V.18-Jan-10 19:48
professionalV.18-Jan-10 19: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.