We use SMTP server to send emails.
For example in the web.config file I have this code :
<mailsettings>
<smtp deliverymethod="SpecifiedPickupDirectory" from="x@gmail.com">
<network password="xxx" port="465" />
<specifiedpickupdirectory pickupdirectorylocation="C:\TempMail" />
</smtp>
</mailsettings>
It means submit whatever I have in the form then use gmail and the pick up directory would be in my local drive .By submitting I 'll have the sent form in my local drive which I can read of.( I use this code in the time of developing it 's faster than sending through internet)