Click here to Skip to main content
15,880,543 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionCrystal Report Pin
mylogics11-Dec-09 23:25
professionalmylogics11-Dec-09 23:25 
AnswerRe: Crystal Report Pin
Abhijit Jana12-Dec-09 1:52
professionalAbhijit Jana12-Dec-09 1:52 
AnswerRe: Crystal Report Pin
123ammu19-Oct-11 1:30
123ammu19-Oct-11 1:30 
QuestionDIV Formating Pin
Sasmi_Office11-Dec-09 23:22
Sasmi_Office11-Dec-09 23:22 
AnswerRe: DIV Formating Pin
Abhishek Sur12-Dec-09 6:11
professionalAbhishek Sur12-Dec-09 6:11 
Questionautocompleteextender list and calenderextender list shows behind other controls Pin
vikas shukla11-Dec-09 23:21
vikas shukla11-Dec-09 23:21 
QuestionNeed urgent help with AJAX Toolkit multi-handle slider! Pin
James Shao11-Dec-09 21:52
James Shao11-Dec-09 21:52 
Questionwant to make setup without source code Pin
anilaabc11-Dec-09 21:26
anilaabc11-Dec-09 21:26 
AnswerRe: want to make setup without source code Pin
Abhijit Jana12-Dec-09 2:00
professionalAbhijit Jana12-Dec-09 2:00 
QuestionHow to send SMS from asp.net application Pin
bhavnvyas11-Dec-09 18:30
bhavnvyas11-Dec-09 18:30 
AnswerRe: How to send SMS from asp.net application Pin
Abhijit Jana11-Dec-09 19:18
professionalAbhijit Jana11-Dec-09 19:18 
QuestionHow to control another programme Pin
cullyk11-Dec-09 16:08
cullyk11-Dec-09 16:08 
AnswerRe: How to control another programme Pin
Abhijit Jana12-Dec-09 2:02
professionalAbhijit Jana12-Dec-09 2:02 
QuestionPerfomance issue in web form have multiple controls Pin
sandeepranjan11-Dec-09 14:54
sandeepranjan11-Dec-09 14:54 
AnswerRe: Perfomance issue in web form have multiple controls Pin
Abhijit Jana11-Dec-09 19:39
professionalAbhijit Jana11-Dec-09 19:39 

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.