Click here to Skip to main content
15,917,473 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: The Query string is insecure Pin
Abhijit Jana1-Aug-09 0:52
professionalAbhijit Jana1-Aug-09 0:52 
QuestionJS for Password strength Pin
janani131-Aug-09 0:20
janani131-Aug-09 0:20 
AnswerRe: JS for Password strength Pin
Abhijit Jana1-Aug-09 0:27
professionalAbhijit Jana1-Aug-09 0:27 
GeneralRe: JS for Password strength Pin
janani131-Aug-09 0:35
janani131-Aug-09 0:35 
GeneralRe: JS for Password strength Pin
Blue_Boy1-Aug-09 1:51
Blue_Boy1-Aug-09 1:51 
Questionemail/sms Pin
bhadilov31-Jul-09 22:53
bhadilov31-Jul-09 22:53 
AnswerRe: email/sms Pin
AhsanS31-Jul-09 22:59
AhsanS31-Jul-09 22:59 
AnswerRe: email/sms Pin
Abhijit Jana31-Jul-09 23:00
professionalAbhijit Jana31-Jul-09 23:00 
This is one of the most used and common functionality in any application.

You have to use Following namespace,
Using System.Net.Mail


Sample Code :
 MailMessage Mail = new MailMessage();
 MailAddress mailAdd = new MailAddress(txtFrom.Text,txtName.Text);
 Mail.From = mailAdd ;
 Mail.To.Add(txtTo.Text);
 Mail.Subject = txtSubject.Text;
 Mail.Body = txtComment.Text;
try
 {
     SmtpClient Objsmtp = new SmtpClient();
 Objsmtp .Host = "myMailServer";
     Objsmtp .Send(Mail);

 }
 catch (Exception ex)
 {
     //Handel Exception
 }


If you serach google, you will get many example on same. Smile | :)

Note : Please configure your SMTP Serverproperly before starting and testing it.

Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
View My Latest Article

GeneralRe: email/sms Pin
bhadilov31-Jul-09 23:17
bhadilov31-Jul-09 23:17 
GeneralRe: email/sms Pin
Abhijit Jana31-Jul-09 23:28
professionalAbhijit Jana31-Jul-09 23:28 
GeneralRe: email/sms Pin
N a v a n e e t h1-Aug-09 4:49
N a v a n e e t h1-Aug-09 4:49 
AnswerRe: email/sms Pin
Manas Bhardwaj31-Jul-09 23:03
professionalManas Bhardwaj31-Jul-09 23:03 
GeneralRe: email/sms Pin
bhadilov31-Jul-09 23:27
bhadilov31-Jul-09 23:27 
Questioninternet hyperlinks Pin
bhadilov31-Jul-09 21:42
bhadilov31-Jul-09 21:42 
AnswerRe: internet hyperlinks Pin
Abhijit Jana31-Jul-09 21:50
professionalAbhijit Jana31-Jul-09 21:50 
AnswerRe: internet hyperlinks Pin
bhadilov31-Jul-09 22:06
bhadilov31-Jul-09 22:06 
GeneralRe: internet hyperlinks Pin
Abhijit Jana31-Jul-09 22:20
professionalAbhijit Jana31-Jul-09 22:20 
GeneralRe: internet hyperlinks Pin
Manas Bhardwaj31-Jul-09 23:05
professionalManas Bhardwaj31-Jul-09 23:05 
QuestionDate comparison in JS Pin
janani1331-Jul-09 20:47
janani1331-Jul-09 20:47 
AnswerRe: Date comparison in JS Pin
Abhijit Jana31-Jul-09 21:00
professionalAbhijit Jana31-Jul-09 21:00 
GeneralRe: Date comparison in JS Pin
janani1331-Jul-09 21:10
janani1331-Jul-09 21:10 
GeneralRe: Date comparison in JS Pin
Abhijit Jana31-Jul-09 21:19
professionalAbhijit Jana31-Jul-09 21:19 
GeneralRe: Date comparison in JS Pin
janani1331-Jul-09 21:27
janani1331-Jul-09 21:27 
GeneralRe: Date comparison in JS Pin
Blue_Boy31-Jul-09 21:32
Blue_Boy31-Jul-09 21:32 
GeneralRe: Date comparison in JS Pin
janani1331-Jul-09 21:36
janani1331-Jul-09 21:36 

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.