Click here to Skip to main content
15,902,635 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How do i make the menu selected item have a different color? tabbed menu ASP.NET MVC Pin
Jim G6-Apr-10 15:13
Jim G6-Apr-10 15:13 
QuestionAzure and Web Controls Pin
#realJSOP12-Dec-09 4:15
professional#realJSOP12-Dec-09 4:15 
AnswerRe: Azure and Web Controls Pin
Oakman12-Dec-09 8:49
Oakman12-Dec-09 8:49 
AnswerRe: Azure and Web Controls Pin
Abhishek Sur12-Dec-09 9:57
professionalAbhishek Sur12-Dec-09 9:57 
QuestionPrinting in ASP.NET Pin
tunsten12-Dec-09 2:33
tunsten12-Dec-09 2:33 
AnswerRe: Printing in ASP.NET Pin
m-khansari12-Dec-09 3:40
m-khansari12-Dec-09 3:40 
GeneralRe: Printing in ASP.NET Pin
tunsten15-Dec-09 5:13
tunsten15-Dec-09 5:13 
GeneralRe: Printing in ASP.NET Pin
m-khansari15-Dec-09 23:02
m-khansari15-Dec-09 23:02 
QuestionGetting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:03
tunsten12-Dec-09 2:03 
AnswerRe: Getting Server control Id with JavaScript code... Pin
Abhijit Jana12-Dec-09 2:13
professionalAbhijit Jana12-Dec-09 2:13 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:25
tunsten12-Dec-09 2:25 
AnswerRe: Getting Server control Id with JavaScript code... Pin
Iman Ebadi12-Dec-09 2:45
Iman Ebadi12-Dec-09 2:45 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten12-Dec-09 2:58
tunsten12-Dec-09 2:58 
AnswerRe: Getting Server control Id with JavaScript code... Pin
Abhishek Sur12-Dec-09 10:02
professionalAbhishek Sur12-Dec-09 10:02 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten15-Dec-09 5:07
tunsten15-Dec-09 5:07 
AnswerRe: Getting Server control Id with JavaScript code... Pin
m-khansari12-Dec-09 3:30
m-khansari12-Dec-09 3:30 
GeneralRe: Getting Server control Id with JavaScript code... Pin
tunsten15-Dec-09 5:05
tunsten15-Dec-09 5:05 
QuestionPopup from a GridView control... Pin
tunsten12-Dec-09 1:51
tunsten12-Dec-09 1:51 
AnswerRe: Popup from a GridView control... Pin
Abhijit Jana12-Dec-09 1:57
professionalAbhijit Jana12-Dec-09 1:57 
GeneralRe: Popup from a GridView control... Pin
tunsten12-Dec-09 2:14
tunsten12-Dec-09 2:14 
GeneralRe: Popup from a GridView control... Pin
Abhijit Jana12-Dec-09 2:21
professionalAbhijit Jana12-Dec-09 2:21 
GeneralRe: Popup from a GridView control... Pin
tunsten12-Dec-09 2:28
tunsten12-Dec-09 2:28 
QuestionSending mail from asp.net.. need help Pin
Hema Bairavan11-Dec-09 23:47
Hema Bairavan11-Dec-09 23:47 
Hi peoples,

i m trying to send an mail from my application (localhost)

this is my code..( i copied from website)

// Command line argument must the the SMTP host.
SmtpClient client = new SmtpClient("localhost");
// Specify the e-mail sender.
// Create a mailing address that includes a UTF8 character
// in the display name.
MailAddress from = new MailAddress("hbairavan@yahoo.com", "Jane " + (char)0xD8 + " Clayton",
System.Text.Encoding.UTF8);
// Set destinations for the e-mail message.
MailAddress to = new MailAddress("hbairavan@yahoo.com");
// Specify the message content.
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(from, to);
message.Body = "This is a test e-mail message sent by an application. ";
// Include some non-ASCII characters in body and subject.
string someArrows = new string(new char[] { '\u2190', '\u2191', '\u2192', '\u2193' });
message.Body += Environment.NewLine + someArrows;
message.BodyEncoding = System.Text.Encoding.UTF8;
message.Subject = "test message 1" + someArrows;
message.SubjectEncoding = System.Text.Encoding.UTF8;
// Set the method that is called back when the send operation ends.
client.SendCompleted += new
SendCompletedEventHandler(SendCompletedCallback);
// The userState can be any object that allows your callback
// method to identify this send operation.
// For this example, the userToken is a string constant.
string userState = "test message1";
client.EnableSsl = false;

client.UseDefaultCredentials = false;

client.DeliveryMethod = SmtpDeliveryMethod.Network;



client.Credentials =
new System.Net.NetworkCredential(from.ToString(), "f00bar");

client.SendAsync(message, userState);


after this line am getting exception that


failure sending mail..


wat may be the reason.please help
\

thanks in advacnce
AnswerRe: Sending mail from asp.net.. need help Pin
Abhijit Jana12-Dec-09 1:43
professionalAbhijit Jana12-Dec-09 1:43 
GeneralRe: Sending mail from asp.net.. need help Pin
farogh haider14-Dec-09 18:45
farogh haider14-Dec-09 18:45 

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.