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

ASP.NET

 
AnswerRe: print continuously in javascript Pin
Christian Graus19-Jul-09 14:05
protectorChristian Graus19-Jul-09 14:05 
Questionproblem with DataSource & GridView Pin
Sider8918-Jul-09 19:46
Sider8918-Jul-09 19:46 
Questionbind css to web user control Pin
Spurple18-Jul-09 1:01
Spurple18-Jul-09 1:01 
AnswerRe: bind css to web user control Pin
Abhijit Jana18-Jul-09 1:08
professionalAbhijit Jana18-Jul-09 1:08 
AnswerRe: bind css to web user control Pin
Brij18-Jul-09 1:09
mentorBrij18-Jul-09 1:09 
QuestionSending mail....problem Pin
RajpootRohan18-Jul-09 0:11
professionalRajpootRohan18-Jul-09 0:11 
AnswerRe: Sending mail....problem Pin
Abhijit Jana18-Jul-09 0:22
professionalAbhijit Jana18-Jul-09 0:22 
AnswerRe: Sending mail....problem Pin
Gary Stafford18-Jul-09 4:07
Gary Stafford18-Jul-09 4:07 
I agree with the previous comment, it seems like your SMTP mail server must be configured incorrectly in your web.config file. I tested your code (slightly modified), using localhost as the mail server; it worked just fine.

//Test Strings
string TxtEmail = "Sue.Smith@123.com";
string TxtName = "Sue Smith";
string TxtMessage = "This is a test email message.";

using(MailMessage message = new MailMessage())
{
    message.From = new MailAddress(TxtEmail, TxtName);
    message.To.Add(new MailAddress("rohanrajpoot@in.com"));
    message.Subject = "This person has contacted us!";
    message.IsBodyHtml = false;
    message.Body = TxtMessage;
    SmtpClient smtpClient = new SmtpClient { Host = "localhost" };
    smtpClient.Send(message);
}


Regards,

Gary

QuestionShow Routeplanner to HighSlidepopup in .net Pin
getaccessyr18-Jul-09 0:04
getaccessyr18-Jul-09 0:04 
AnswerRe: Show Routeplanner to HighSlidepopup in .net Pin
Abhijit Jana18-Jul-09 0:34
professionalAbhijit Jana18-Jul-09 0:34 
GeneralRe: Show Routeplanner to HighSlidepopup in .net Pin
getaccessyr19-Jul-09 19:40
getaccessyr19-Jul-09 19:40 
QuestionNeed help! Excel 2007 throiwng RPC failed/RPC Unavailable exception on large datasets Pin
Member 420977017-Jul-09 23:09
Member 420977017-Jul-09 23:09 
Questionmenu Pin
mylogics17-Jul-09 21:23
professionalmylogics17-Jul-09 21:23 
AnswerRe: menu Pin
Blue_Boy17-Jul-09 22:24
Blue_Boy17-Jul-09 22:24 
GeneralRe: menu Pin
Manas Bhardwaj17-Jul-09 22:28
professionalManas Bhardwaj17-Jul-09 22:28 
GeneralRe: menu Pin
Blue_Boy17-Jul-09 22:31
Blue_Boy17-Jul-09 22:31 
GeneralRe: menu Pin
Abhijit Jana17-Jul-09 22:33
professionalAbhijit Jana17-Jul-09 22:33 
AnswerRe: menu Pin
Manas Bhardwaj17-Jul-09 22:27
professionalManas Bhardwaj17-Jul-09 22:27 
Questionblank forms submitting on server, all validations not working. Pin
er.puneet17-Jul-09 19:57
er.puneet17-Jul-09 19:57 
AnswerRe: blank forms submitting on server, all validations not working. Pin
himanshu256117-Jul-09 20:24
himanshu256117-Jul-09 20:24 
GeneralRe: blank forms submitting on server, all validations not working. Pin
er.puneet17-Jul-09 20:42
er.puneet17-Jul-09 20:42 
GeneralRe: blank forms submitting on server, all validations not working. Pin
himanshu256117-Jul-09 21:00
himanshu256117-Jul-09 21:00 
GeneralRe: blank forms submitting on server, all validations not working. Pin
er.puneet17-Jul-09 21:11
er.puneet17-Jul-09 21:11 
GeneralRe: blank forms submitting on server, all validations not working. Pin
Abhijit Jana17-Jul-09 21:48
professionalAbhijit Jana17-Jul-09 21:48 
AnswerRe: blank forms submitting on server, all validations not working. Pin
Abhijit Jana17-Jul-09 21:47
professionalAbhijit Jana17-Jul-09 21: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.