Click here to Skip to main content
15,887,328 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: column value from multiple rows as one value Pin
Tripathi Swati27-Aug-08 2:33
Tripathi Swati27-Aug-08 2:33 
GeneralRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 3:00
vjvjvjvj27-Aug-08 3:00 
GeneralRe: column value from multiple rows as one value Pin
Tripathi Swati27-Aug-08 19:30
Tripathi Swati27-Aug-08 19:30 
GeneralRe: column value from multiple rows as one value Pin
vjvjvjvj27-Aug-08 22:51
vjvjvjvj27-Aug-08 22:51 
QuestionAuthorization roles & IIS Pin
laserbaronen26-Aug-08 23:39
laserbaronen26-Aug-08 23:39 
AnswerRe: Authorization roles & IIS Pin
eyeseetee26-Aug-08 23:58
eyeseetee26-Aug-08 23:58 
GeneralRe: Authorization roles & IIS Pin
laserbaronen27-Aug-08 0:48
laserbaronen27-Aug-08 0:48 
Questionsending Email in C# Pin
kvsreedhar26-Aug-08 23:33
kvsreedhar26-Aug-08 23:33 
anyone over there please help
I was trying sending Email in C#
the code goes this way...

string smtp = "localhost";

System.Net.Mail.SmtpClient smtpClient = new System.Net.Mail.SmtpClient(smtp);

System.Net.Mail.MailMessage objEmail = new System.Net.Mail.MailMessage();
objEmail.To.Add(txtEmail.Text); //to@domain.com
objEmail.From = new System.Net.Mail.MailAddress(txtFrom.Text, "kv"); //from@domain.com

objEmail.Subject = "Test Email For DOT NET";

objEmail.Body = txtMessage.Text; //some body
objEmail.Priority = System.Net.Mail.MailPriority.High;

//SmtpMail.SmtpServer = "localhost";
try
{
smtpClient.Send(objEmail);
Response.Write("Your Email has been sent sucessfully -Thank You");
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}

----but my doubt is When the code is run I am getting a message
"Your Email has been sent sucessfully -Thank You"
but when checked the mail I don't find the mail sent in inbox. I am using localhost as SMTP server .
May please help me in this .
Also I have configured the SMTP server to 127.0.0.1 (AdminTools->IIS->Default SMTP Virtual Server->properties->access->relay->127.0.0.1). I found the SMTP working in my system.But the mail can't be found in the Inbox of the recepient(it's my own mail)

Rose | [Rose] Thanking in advance Rose | [Rose]

Kovuru Sreedhar

AnswerRe: sending Email in C# Pin
N a v a n e e t h26-Aug-08 23:36
N a v a n e e t h26-Aug-08 23:36 
GeneralRe: sending Email in C# Pin
kvsreedhar26-Aug-08 23:52
kvsreedhar26-Aug-08 23:52 
GeneralRe: sending Email in C# Pin
eyeseetee26-Aug-08 23:55
eyeseetee26-Aug-08 23:55 
GeneralRe: sending Email in C# Pin
kvsreedhar27-Aug-08 0:08
kvsreedhar27-Aug-08 0:08 
GeneralRe: sending Email in C# Pin
eyeseetee27-Aug-08 0:11
eyeseetee27-Aug-08 0:11 
GeneralRe: sending Email in C# Pin
kvsreedhar27-Aug-08 0:20
kvsreedhar27-Aug-08 0:20 
GeneralRe: sending Email in C# Pin
eyeseetee27-Aug-08 1:29
eyeseetee27-Aug-08 1:29 
JokeRe: sending Email in C# Pin
Manas Bhardwaj26-Aug-08 23:59
professionalManas Bhardwaj26-Aug-08 23:59 
GeneralRe: sending Email in C# Pin
kvsreedhar27-Aug-08 0:12
kvsreedhar27-Aug-08 0:12 
GeneralRe: sending Email in C# Pin
N a v a n e e t h27-Aug-08 2:21
N a v a n e e t h27-Aug-08 2:21 
GeneralRe: sending Email in C# Pin
Manas Bhardwaj27-Aug-08 3:34
professionalManas Bhardwaj27-Aug-08 3:34 
GeneralRe: sending Email in C# Pin
kvsreedhar28-Aug-08 20:08
kvsreedhar28-Aug-08 20:08 
AnswerRe: sending Email in C# Pin
eyeseetee26-Aug-08 23:37
eyeseetee26-Aug-08 23:37 
GeneralRe: sending Email in C# Pin
kvsreedhar26-Aug-08 23:57
kvsreedhar26-Aug-08 23:57 
QuestionReload Main Page [modified] Pin
omlac26-Aug-08 22:45
omlac26-Aug-08 22:45 
AnswerRe: Reload Main Page Pin
N a v a n e e t h26-Aug-08 23:34
N a v a n e e t h26-Aug-08 23:34 
GeneralRe: Reload Main Page Pin
omlac26-Aug-08 23:47
omlac26-Aug-08 23:47 

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.