ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net AllOther
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
How to send e-mail to gmail/yahoo or any other ID from your
mail server.I need the code.
 Question Submitted By :: D.surojit16
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to send e-mail to gmail/yahoo or any other ID from your mail server.I need the code.
Answer
# 1
using System.Net.Mail;

public partial class _Default : System.Web.UI.Page 
{
    protected void btnsendmail_Click(object sender, 
EventArgs e)
    {
        SmtpClient obj = new SmtpClient();
        obj.Send(txt_from.Text, txt_to.Text, 
txt_subject.Text, txt_body.Text);
    }
}
 
Is This Answer Correct ?    0 Yes 0 No
Sunny
 

 
 
 
Other Dot Net AllOther Interview Questions
 
  Question Asked @ Answers
 
what is a tool tip Six-Sigma2
What is the difference between a web custom control,web user control and a web part. 247Customer1
Let's say I have an existing application written using Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to .NET ?  1
How to work with Crystal Reports without using Visual Studio?  1
how can u manage sessions ? Ness-Technologies2
what is authentication and authorization?how do they differ? Six-Sigma2
what to choose among testing, .net , and java for a B-Tech (ECE) fresher.  1
What does the "EnableViewState" property do? Why would I want it on or off?  1
How many types of languages does .net support? name at least 10-15? Six-Sigma7
What is VSS? Use of VSS? How can we use VSS in our Application?  2
What is a Windows Service and how does its lifecycle differ from a "standard" EXE?  1
what is the difference between value types and reference types? Six-Sigma2
Will finally block exec if we write an return statement to a try block???????  2
What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework T3-Softwares4
How many types of assemblies are there in the visual studio.net? Six-Sigma1
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?  1
what is the need of vss to developer?  1
Explain in-proc,out-proc and sql server. Ness-Technologies3
i want to know that now a days which software course has demand and more opportunities please give me reply to my mail id APC3
how do u achieve multilevel inheritance in .NET ? Ness-Technologies6
 
For more Dot Net AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com