Click here to Skip to main content
15,891,204 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Mdb file is opened or not Pin
BalasubramanianK28-Aug-08 21:38
BalasubramanianK28-Aug-08 21:38 
AnswerRe: Mdb file is opened or not Pin
Blue_Boy28-Aug-08 21:08
Blue_Boy28-Aug-08 21:08 
GeneralRe: Mdb file is opened or not Pin
BalasubramanianK28-Aug-08 21:22
BalasubramanianK28-Aug-08 21:22 
GeneralRe: Mdb file is opened or not Pin
Blue_Boy28-Aug-08 21:34
Blue_Boy28-Aug-08 21:34 
QuestionRe: Mdb file is opened or not Pin
Krazy Programmer28-Aug-08 22:33
Krazy Programmer28-Aug-08 22:33 
AnswerRe: Mdb file is opened or not Pin
BalasubramanianK28-Aug-08 22:38
BalasubramanianK28-Aug-08 22:38 
GeneralRe: Mdb file is opened or not Pin
BalasubramanianK28-Aug-08 22:33
BalasubramanianK28-Aug-08 22:33 
QuestionE-Mailing in ASP .NET Pin
kvsreedhar28-Aug-08 19:23
kvsreedhar28-Aug-08 19:23 
any one please help me
I have the following code for Emailing .
My doubt is I am able to send mail only to gmail(as a spam) but not to other mail like yahoo(not even as a spam) etc. What could be the reason .I have even configured web.config file and ....Relay->127.0.0.1
kindly help me
Rose | [Rose] Thanks in advanceRose | [Rose]

---------->

//create the mail message
MailMessage mail = new MailMessage();

//set the addresses
mail.From = new MailAddress(txtFrom .Text.Trim ());
mail.To.Add(txtTo.Text.Trim ());

//set the content
mail.Subject = txtSubject .Text ;

//first we create the Plain Text part
AlternateView plainView = AlternateView.CreateAlternateViewFromString("Some Plain Text" , null, "text/plain");
//then we create the Html part
AlternateView htmlView = AlternateView.CreateAlternateViewFromString("<b>"+txtBody .Text.Trim ()+"</b>", null, "text/html");
mail.AlternateViews.Add(plainView);
mail.AlternateViews.Add(htmlView);


//send the message
SmtpClient smtp = new SmtpClient("127.0.0.1"); //specify the mail server address
try
{
smtp.Send(mail);
Response.Write("Mail Sent...");
txtBody.Text = "";
txtFrom.Text = "";
txtSubject.Text = "";
txtTo.Text = "";
}
catch (Exception ex)
{
Response.Write (ex.ToString ());
}
<---------->
Kovuru Sreedhar

AnswerRe: E-Mailing in ASP .NET Pin
Expert Coming28-Aug-08 20:05
Expert Coming28-Aug-08 20:05 
GeneralRe: E-Mailing in ASP .NET Pin
kvsreedhar28-Aug-08 20:10
kvsreedhar28-Aug-08 20:10 
GeneralRe: E-Mailing in ASP .NET Pin
Sathesh Sakthivel28-Aug-08 20:18
Sathesh Sakthivel28-Aug-08 20:18 
Questioncomponent from widows to web Pin
brettokumar28-Aug-08 19:20
professionalbrettokumar28-Aug-08 19:20 
QuestionPage_PreInit() Pin
Cyberpulse28-Aug-08 14:37
Cyberpulse28-Aug-08 14:37 
AnswerRe: Page_PreInit() Pin
Christian Graus28-Aug-08 15:56
protectorChristian Graus28-Aug-08 15:56 
AnswerRe: Page_PreInit() Pin
Brij28-Aug-08 21:24
mentorBrij28-Aug-08 21:24 
AnswerRe: Page_PreInit() Pin
Gamzun1-Sep-08 21:25
Gamzun1-Sep-08 21:25 
Questionget path to client desktop Pin
kani9828-Aug-08 13:42
kani9828-Aug-08 13:42 
AnswerRe: get path to client desktop Pin
Christian Graus28-Aug-08 15:57
protectorChristian Graus28-Aug-08 15:57 
GeneralRe: get path to client desktop Pin
kani9829-Aug-08 6:07
kani9829-Aug-08 6:07 
AnswerRe: get path to client desktop Pin
metallica_rock1028-Aug-08 18:52
metallica_rock1028-Aug-08 18:52 
QuestionHow to Set Printer Settings Programatically? Pin
D4ever28-Aug-08 8:24
D4ever28-Aug-08 8:24 
AnswerRe: How to Set Printer Settings Programatically? Pin
Abhishek Sur28-Aug-08 9:32
professionalAbhishek Sur28-Aug-08 9:32 
GeneralRe: How to Set Printer Settings Programatically? Pin
D4ever30-Aug-08 23:57
D4ever30-Aug-08 23:57 
AnswerRe: How to Set Printer Settings Programatically? Pin
N a v a n e e t h28-Aug-08 18:18
N a v a n e e t h28-Aug-08 18:18 
QuestionRequired a Message using DIV Pin
slSoftware28-Aug-08 7:18
slSoftware28-Aug-08 7:18 

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.