Click here to Skip to main content
15,881,715 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: print file Pin
Christian Graus26-Nov-08 7:41
protectorChristian Graus26-Nov-08 7:41 
QuestionHow to edit my url on button click Pin
Exelioindia26-Nov-08 1:57
Exelioindia26-Nov-08 1:57 
AnswerRe: How to edit my url on button click Pin
Paddy Boyd26-Nov-08 2:10
Paddy Boyd26-Nov-08 2:10 
QuestionHttpContext in an HttpHandler does not seem to handle large chunks of data Pin
chambarish26-Nov-08 1:46
chambarish26-Nov-08 1:46 
Questionhow to get the boundfield value of the gridview using javascript Pin
lakshmichawala26-Nov-08 1:38
lakshmichawala26-Nov-08 1:38 
AnswerRe: how to get the boundfield value of the gridview using javascript Pin
Christian Graus26-Nov-08 10:21
protectorChristian Graus26-Nov-08 10:21 
GeneralDynamic Views in MVC Pin
Brady Kelly26-Nov-08 1:05
Brady Kelly26-Nov-08 1:05 
QuestionMail sending problem Pin
dipak.dipak26-Nov-08 0:42
dipak.dipak26-Nov-08 0:42 
Hello Everybody,
I have written a code to send mail but it is not working properly.
I have added reference of System.Net.Mail; in C# code page and on botton click event I have written following code.

try
{
SmtpClient mySmtpClient = new SmtpClient();
MailMessage myMail = new MailMessage("hr@advantawitty.com", "dipak.dipak@gmail.com", "MyTest Mail", "Hello This is Test Mail using .net Coding");
myMail.IsBodyHtml = true;
mySmtpClient.Send(myMail);
lblMessage.Text = "Mail Successfully Sent";
}
catch (Exception Ex)
{
lblMessage.Text = Ex.ToString();
}



and in web.config file:

<mailsettings>
<smtp deliverymethod="Network">
<network host="smtp.advantawitty.com" port="25">




I am only confusing that what should be Smtp server name for my website..
when I am setting "localhost", it sends a mail which is stored in queue of mailroot on hard drive. But when i am uploading this it is not working..

how can i know my smtp server name?
Or is there any other mistake in the code or configuration?

Please help me...
Thank you. Blush | :O

Dipak

AnswerRe: Mail sending problem Pin
Shyam Bharath26-Nov-08 1:57
Shyam Bharath26-Nov-08 1:57 
GeneralRe: Mail sending problem Pin
dipak.dipak28-Nov-08 20:27
dipak.dipak28-Nov-08 20:27 
QuestionChashing Pin
mehri.v200526-Nov-08 0:34
mehri.v200526-Nov-08 0:34 
QuestionHow to load *.pcx files in html Pin
Member 462021626-Nov-08 0:32
Member 462021626-Nov-08 0:32 
AnswerRe: How to load *.pcx files in html Pin
Paddy Boyd26-Nov-08 2:13
Paddy Boyd26-Nov-08 2:13 
GeneralRe: How to load *.pcx files in html Pin
Member 462021626-Nov-08 2:24
Member 462021626-Nov-08 2:24 
Questiondata converting Pin
Afroz Ali26-Nov-08 0:25
Afroz Ali26-Nov-08 0:25 
AnswerRe: data converting Pin
Ashfield26-Nov-08 1:21
Ashfield26-Nov-08 1:21 
AnswerRe: data converting Pin
Christian Graus26-Nov-08 10:06
protectorChristian Graus26-Nov-08 10:06 
QuestionWeb Development Pin
Afroz Ali26-Nov-08 0:21
Afroz Ali26-Nov-08 0:21 
AnswerRe: Web Development Pin
Christian Graus26-Nov-08 7:42
protectorChristian Graus26-Nov-08 7:42 
GeneralDynamic Views in MVC Pin
Brady Kelly26-Nov-08 0:14
Brady Kelly26-Nov-08 0:14 
QuestionMerging Dataset Pin
NinaWilliam26-Nov-08 0:06
NinaWilliam26-Nov-08 0:06 
AnswerRe: Merging Dataset Pin
Shyam Bharath26-Nov-08 0:13
Shyam Bharath26-Nov-08 0:13 
QuestionAbout image Processing Pin
sanjay3025-Nov-08 22:37
sanjay3025-Nov-08 22:37 
AnswerRe: About image Processing Pin
Christian Graus25-Nov-08 23:06
protectorChristian Graus25-Nov-08 23:06 
GeneralRe: About image Processing Pin
sanjay3026-Nov-08 1:31
sanjay3026-Nov-08 1:31 

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.