Click here to Skip to main content
15,895,084 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: LayOut In . Net Pin
Abhinav S17-Apr-10 6:48
Abhinav S17-Apr-10 6:48 
AnswerRe: LayOut In . Net Pin
Super Lloyd19-Apr-10 17:22
Super Lloyd19-Apr-10 17:22 
QuestionDatagrid Header Column Image Pin
Member 42789816-Apr-10 14:25
Member 42789816-Apr-10 14:25 
AnswerRe: Datagrid Header Column Image - One way you can do this is to use the CellsPainting event to draw thebitmap Pin
Peace ON16-Apr-10 20:59
Peace ON16-Apr-10 20:59 
GeneralRe: Datagrid Header Column Image - One way you can do this is to use the CellsPainting event to draw thebitmap Pin
Member 42789817-Apr-10 4:54
Member 42789817-Apr-10 4:54 
QuestionOLEDB VS2010 and need of help! Pin
ahulting16-Apr-10 5:24
ahulting16-Apr-10 5:24 
AnswerRe: OLEDB VS2010 and need of help! Pin
Ashfield17-Apr-10 6:15
Ashfield17-Apr-10 6:15 
Questionhow to send mail from my c# windows application [modified] Pin
Balaji_Reddy15-Apr-10 22:17
Balaji_Reddy15-Apr-10 22:17 
hi everyone,i'm trying to develop an application to send an e-mail from my c# windows application

here i'm tis namespace
using System.Net.Mail;

and its my code:::::
Confused | :confused:
private void button1_Click(object sender, EventArgs e)
{
try
{
SmtpClient client = new SmtpClient("192.168.1.15", 808);

MailAddress from = new MailAddress("a@live.com");
MailAddress to = new MailAddress("d@live.com");
MailMessage mail = new MailMessage(from,to);
mail.Body = textBox1.Text;


mail.Subject = " hi da ";

client.Send(mail);
}
catch (SystemException se)
{
MessageBox.Show(se.ToString());
}

finally
{
}


--------------------------------------------------
this is ma code but its work but i'm getting run time error like " failure sending mail, unable to connect to remote server"

in smtpclient class i have given ip address as my host and port id.....

pls help me to resolve tis error
modified on Friday, April 16, 2010 4:23 AM

AnswerRe: how to send mail from my c# windows application Pin
Michel Godfroid15-Apr-10 23:44
Michel Godfroid15-Apr-10 23:44 
GeneralRe: how to send mail from my c# windows application Pin
Balaji_Reddy16-Apr-10 16:36
Balaji_Reddy16-Apr-10 16:36 
GeneralRe: how to send mail from my c# windows application Pin
Michel Godfroid16-Apr-10 21:02
Michel Godfroid16-Apr-10 21:02 
GeneralRe: how to send mail from my c# windows application Pin
Balaji_Reddy16-Apr-10 22:14
Balaji_Reddy16-Apr-10 22:14 
GeneralRe: how to send mail from my c# windows application Pin
Michel Godfroid16-Apr-10 22:20
Michel Godfroid16-Apr-10 22:20 
GeneralRe: how to send mail from my c# windows application Pin
Balaji_Reddy19-Apr-10 0:13
Balaji_Reddy19-Apr-10 0:13 
GeneralRe: how to send mail from my c# windows application Pin
Balaji_Reddy21-Apr-10 17:00
Balaji_Reddy21-Apr-10 17:00 
AnswerRe: how to send mail from my c# windows application Pin
Michel Godfroid21-Apr-10 21:28
Michel Godfroid21-Apr-10 21:28 
QuestionIIS media service Pin
Rajan UNCC 15-Apr-10 10:54
Rajan UNCC 15-Apr-10 10:54 
QuestionCustom Collection with Extension method, linq Support [modified] Pin
anand kumar m14-Apr-10 19:20
anand kumar m14-Apr-10 19:20 
AnswerRe: Custom Collection with Extension method, linq Support Pin
Not Active14-Apr-10 20:06
mentorNot Active14-Apr-10 20:06 
GeneralRe: Custom Collection with Extension method, linq Support Pin
anand kumar m14-Apr-10 20:59
anand kumar m14-Apr-10 20:59 
GeneralRe: Custom Collection with Extension method, linq Support Pin
Not Active14-Apr-10 22:21
mentorNot Active14-Apr-10 22:21 
GeneralRe: Custom Collection with Extension method, linq Support Pin
anand kumar m15-Apr-10 2:44
anand kumar m15-Apr-10 2:44 
GeneralRe: Custom Collection with Extension method, linq Support Pin
Not Active15-Apr-10 3:27
mentorNot Active15-Apr-10 3:27 
GeneralRe: Custom Collection with Extension method, linq Support [modified] Pin
anand kumar m15-Apr-10 18:47
anand kumar m15-Apr-10 18:47 
AnswerRe: Custom Collection with Extension method, linq Support Pin
Gideon Engelberth16-Apr-10 2:48
Gideon Engelberth16-Apr-10 2: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.