Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
QuestionSplit Function Pin
Programm3r12-Dec-07 20:37
Programm3r12-Dec-07 20:37 
GeneralRe: Split Function Pin
Michael Sync12-Dec-07 21:10
Michael Sync12-Dec-07 21:10 
GeneralRe: Split Function [modified] Pin
blackjack215012-Dec-07 21:26
blackjack215012-Dec-07 21:26 
GeneralRe: Split Function Pin
Brady Kelly12-Dec-07 21:27
Brady Kelly12-Dec-07 21:27 
GeneralRe: Split Function Pin
Programm3r12-Dec-07 22:15
Programm3r12-Dec-07 22:15 
Generaldrawing lines in autocad from windows application Pin
Member 464262912-Dec-07 20:34
Member 464262912-Dec-07 20:34 
GeneralRe: drawing lines in autocad from windows application Pin
blackjack215012-Dec-07 21:37
blackjack215012-Dec-07 21:37 
GeneralSending email Pin
soso_online12-Dec-07 20:20
soso_online12-Dec-07 20:20 
I using ASP.NET 2.0 to try and send email, but i keep op getting this error "Failure sending email", "Unable to connect to remote server"

Here is my code to send email
try
{
System.Net.Mail.SmtpClient smtpClient = new System.Net.Mail.SmtpClient(mailServer);
smtpClient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network;
smtpClient.Credentials = new System.Net.NetworkCredential("username", "pass");
smtpClient.Send(from, to, "Test Email", "Test Body");
}
catch(Exception ex)
{
throw new Exception("Error sending email: " + ex.Message);
}

Please help....
GeneralRe: Sending email Pin
CKnig12-Dec-07 21:15
CKnig12-Dec-07 21:15 
GeneralRe: Sending email Pin
soso_online12-Dec-07 21:34
soso_online12-Dec-07 21:34 
GeneralRe: Sending email Pin
CKnig12-Dec-07 23:38
CKnig12-Dec-07 23:38 
GeneralRe: Sending email Pin
Malcolm Smart13-Dec-07 2:32
Malcolm Smart13-Dec-07 2:32 
GeneralRe: Sending email Pin
soso_online13-Dec-07 2:45
soso_online13-Dec-07 2:45 
QuestionHow can I replace words in MS Word Pin
ivanx12-Dec-07 19:42
ivanx12-Dec-07 19:42 
GeneralRe: How can I replace words in MS Word Pin
Paul Conrad22-Dec-07 9:22
professionalPaul Conrad22-Dec-07 9:22 
QuestionHow to exit from Console Application through code Pin
dipak.dipak12-Dec-07 19:11
dipak.dipak12-Dec-07 19:11 
AnswerRe: How to exit from Console Application through code Pin
N a v a n e e t h12-Dec-07 19:46
N a v a n e e t h12-Dec-07 19:46 
GeneralRe: How to exit from Console Application through code Pin
dipak.dipak12-Dec-07 20:18
dipak.dipak12-Dec-07 20:18 
GeneralRe: How to exit from Console Application through code Pin
N a v a n e e t h12-Dec-07 21:23
N a v a n e e t h12-Dec-07 21:23 
GeneralRe: How to exit from Console Application through code Pin
Vikram A Punathambekar12-Dec-07 22:05
Vikram A Punathambekar12-Dec-07 22:05 
JokeRe: How to exit from Console Application through code Pin
Luc Pattyn13-Dec-07 1:09
sitebuilderLuc Pattyn13-Dec-07 1:09 
AnswerRe: How to exit from Console Application through code Pin
blackjack215012-Dec-07 21:34
blackjack215012-Dec-07 21:34 
QuestionCan i write Bold text on Console Pin
dipak.dipak12-Dec-07 18:56
dipak.dipak12-Dec-07 18:56 
AnswerRe: Can i write Bold text on Console Pin
Vikram A Punathambekar12-Dec-07 22:06
Vikram A Punathambekar12-Dec-07 22:06 
AnswerRe: Can i write Bold text on Console Pin
ChrisKo13-Dec-07 6:30
ChrisKo13-Dec-07 6:30 

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.