Click here to Skip to main content
15,936,802 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: http to https redirection problem Pin
Chetan Ranpariya3-May-07 21:52
Chetan Ranpariya3-May-07 21:52 
QuestionCreating MSI Pin
prathuraj3-May-07 18:17
prathuraj3-May-07 18:17 
QuestionSending Mail through ASP.NET Pin
kaushik4903-May-07 18:04
kaushik4903-May-07 18:04 
AnswerRe: Sending Mail through ASP.NET Pin
kirthikirthi3-May-07 18:35
kirthikirthi3-May-07 18:35 
AnswerRe: Sending Mail through ASP.NET Pin
Sathesh Sakthivel3-May-07 18:39
Sathesh Sakthivel3-May-07 18:39 
AnswerRe: Sending Mail through ASP.NET Pin
Sandeep Kumar3-May-07 18:43
Sandeep Kumar3-May-07 18:43 
AnswerRe: Sending Mail through ASP.NET Pin
Nouman Bhatti3-May-07 21:28
Nouman Bhatti3-May-07 21:28 
AnswerRe: Sending Mail through ASP.NET Pin
Ibuprofen4-May-07 4:27
Ibuprofen4-May-07 4:27 
here is that what you are looking for? Sometimes links are good, but thats my biggest problem with alot of people on CodeProject, most of us are smart enough to google, and if I come here, its because chances are I didnt understand what they were explaining out there. It helps to see real life code, so here is an example for you from one of my projects.


		private void SendEmail()<br />
		{<br />
			try<br />
			{<br />
				//create email message<br />
				MailMessage newMail = new MailMessage();<br />
<br />
				newMail.From="e-mail@e-mail.com";<br />
<br />
<br />
				newMail.From="e-mail@e-mail.com";<br />
				newMail.To=lblEmail.Text;<br />
				newMail.Subject="Your TCAIMS Password";<br />
				newMail.Body="Your password is "+lblPassword.Text+".";<br />
				SmtpMail.SmtpServer="SMTP IP ADDRESS HERE";<br />
				SmtpMail.Send(newMail);<br />
				<br />
				<br />
				<br />
				newMail = new MailMessage();<br />
				newMail.From="e-mail@e-mail.com";<br />
				newMail.To=lblEmail.Text;<br />
				newMail.Subject="Your  User ID";<br />
				newMail.Body="Your User ID is "+lblUserID.Text+".";<br />
				SmtpMail.SmtpServer="SMTP SERVER IP";<br />
				SmtpMail.Send(newMail);<br />
				<br />
			}<br />
			catch(Exception err)<br />
			{<br />
				string s = err.Message;<br />
				HandleErrors(s);<br />
			}<br />
		<br />
		}

QuestionASP.NET Technical Training Pin
JatinerS3-May-07 13:42
JatinerS3-May-07 13:42 
AnswerRe: ASP.NET Technical Training Pin
N a v a n e e t h3-May-07 17:12
N a v a n e e t h3-May-07 17:12 
AnswerRe: ASP.NET Technical Training Pin
_mubashir3-May-07 20:18
_mubashir3-May-07 20:18 
QuestionGridView Pin
seemamltn3-May-07 13:39
seemamltn3-May-07 13:39 
AnswerRe: GridView Pin
Arun.Immanuel3-May-07 15:38
Arun.Immanuel3-May-07 15:38 
Questionhow to transfer data between pages with Hyperlink ? Pin
hdv2123-May-07 13:22
hdv2123-May-07 13:22 
AnswerRe: how to transfer data between pages with Hyperlink ? Pin
DavidNohejl3-May-07 13:27
DavidNohejl3-May-07 13:27 
QuestionHelp Please Pin
yasso_1153-May-07 8:42
yasso_1153-May-07 8:42 
AnswerRe: Help Please Pin
MaryAnne3-May-07 8:59
MaryAnne3-May-07 8:59 
QuestionPanel Pin
netJP12L3-May-07 8:04
netJP12L3-May-07 8:04 
AnswerRe: Panel Pin
mareers3-May-07 19:10
mareers3-May-07 19:10 
QuestionClipping image Pin
dptalt3-May-07 7:55
dptalt3-May-07 7:55 
AnswerRe: Clipping image Pin
Arun.Immanuel3-May-07 15:35
Arun.Immanuel3-May-07 15:35 
AnswerRe: Clipping image Pin
dptalt4-May-07 2:45
dptalt4-May-07 2:45 
QuestionEnter press and Text_Changed [modified] Pin
TheEagle3-May-07 7:03
TheEagle3-May-07 7:03 
AnswerRe: Enter press and Text_Changed Pin
Arun.Immanuel3-May-07 7:16
Arun.Immanuel3-May-07 7:16 
GeneralRe: Enter press and Text_Changed Pin
TheEagle3-May-07 8:21
TheEagle3-May-07 8:21 

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.