.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How do you send a email using ASP.NET ?

Posted By :Santhose Kumar     Posted Date :June 10, 2011    Points :40   Category :ASP.Net 
We need to import the 'System.Web.Mail' namespace and use SMTP (Simple mail transfer protocol)

You can also find related Interview Question to How do you send a email using ASP.NET ?  below: 

Which Protocol is used to send email?

  
SMTP (Simple mail transfer protocol) (More...)

How to send XML file on server using HTTP protocol?

  
Using SOAP we can send XML file on Serevr (More...)

Which method would you call to send an e-mail message and wait for the transmission to complete before proceeding?

  
Select from following answers:

1.MailMessage.Send
2.SmtpClient.Send
3.SmtpClient.SendAsync
4.MailMessage.SendAsync

Correct Answer is:

SmtpClient.Send (More...)

How to validate a Email-address, in Form using JavaScript?

  
We can validate it through the reg expressions. For example we can declare all the reg expressions of the email in a variable as follows.

var reg = /^([A-Za-z0-9_-.])+@([A-Za-z0-9_-.])+.([A-Za-z]{2,4})$/; We need to compare the actual value with this expression for the validation. (More...)

In a survey it was calculated that 75 men could complete a piece of work in 20 days. When work was scheduled to commence, it was found necessary to send 25 men to another project. How much longer will it take to complete the work?

  
30 days.

Explanation:

Before:
One day work = 1 / 20
One man's one day work = 1 / ( 20 * 75)

Now:
No. Of workers = 50
One day work = 50 * 1 / ( 20 * 75)
The total no. of days required to complete the work = (75 * 20) / 50 = 30 (More...)

What are different switching methods used by a switch to send data?

  
Switch adopts two methods foe sending data,

Cut Through Switching:-
In this method of switching data frames are send to the destination computer without error and integrity checking.

Store and Forward Switching:-
In this method the switch sends the data frames after receiving all the frames well as after error and integrity checking. (More...)

Write a SQL query to send mail, whenever a new record is inserted into a table using Sqlserver 2000.

  
Here we have to create a trigger on required table as show below.


CREATE TRIGGER SendRem
ON TableX
AFTER INSERT
AS

EXEC master..xp_sendmail
@recipients='you@you.com',
@message = 'body'
@subject = 'foo was fired.'
GO
(More...)

How to send html emails in c#?

  
MailMessage - IsBodyHtml property to true (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend