Click here to Skip to main content
15,898,790 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Paging in GridView Pin
N a v a n e e t h10-Oct-07 0:34
N a v a n e e t h10-Oct-07 0:34 
GeneralRe: Paging in GridView Pin
Pankaj Chamria10-Oct-07 0:43
Pankaj Chamria10-Oct-07 0:43 
GeneralRe: Paging in GridView Pin
N a v a n e e t h10-Oct-07 0:57
N a v a n e e t h10-Oct-07 0:57 
QuestionSend Email Pin
Mogha Ritesh9-Oct-07 23:47
Mogha Ritesh9-Oct-07 23:47 
AnswerRe: Send Email Pin
Aavesh Agarwal9-Oct-07 23:53
Aavesh Agarwal9-Oct-07 23:53 
AnswerRe: Send Email Pin
Spunky Coder9-Oct-07 23:55
Spunky Coder9-Oct-07 23:55 
GeneralRe: Send Email Pin
Mogha Ritesh10-Oct-07 0:12
Mogha Ritesh10-Oct-07 0:12 
AnswerRe: Send Email Pin
That's Aragon10-Oct-07 0:12
That's Aragon10-Oct-07 0:12 
Use this function

<br />
public bool SendMail(string to,string from,string subject,string cc,string bcc,string attachement,string body)<br />
		{<br />
			//Here Attachement is a Path to a file which is going to be attached			<br />
			SmtpMail.SmtpServer=ConfigurationSettings.AppSettings["SmtpServer"].ToString();<br />
			MailMessage objmail = new MailMessage();	<br />
					<br />
				<br />
			objmail.BodyFormat = MailFormat.Html;				<br />
			objmail.To =  to;<br />
			objmail.From =from;<br />
			objmail.Subject = subject;			<br />
			objmail.Body = body;<br />
			if(cc!="")<br />
			{<br />
				objmail.Cc = cc;<br />
			}<br />
			if(bcc!="")<br />
			{<br />
				objmail.Bcc = bcc;<br />
			}<br />
			if(attachement!="")<br />
			{<br />
				objmail.Attachments.Add(new MailAttachment(attachement));<br />
			}<br />
			try<br />
			{<br />
				SmtpMail.Send(objmail);<br />
				return true;<br />
			}<br />
			catch<br />
			{			<br />
				return false;<br />
			}<br />
				<br />
			<br />
		}<br />


Keep Smiling Smile | :)
Questionno numbers Pin
legend_of_zanado9-Oct-07 23:10
legend_of_zanado9-Oct-07 23:10 
AnswerRe: no numbers Pin
Aavesh Agarwal9-Oct-07 23:24
Aavesh Agarwal9-Oct-07 23:24 
AnswerRe: no numbers Pin
Christian Graus9-Oct-07 23:28
protectorChristian Graus9-Oct-07 23:28 
QuestionShopping Cart Project Pin
Montu769-Oct-07 23:01
Montu769-Oct-07 23:01 
AnswerRe: Shopping Cart Project Pin
Aavesh Agarwal9-Oct-07 23:20
Aavesh Agarwal9-Oct-07 23:20 
QuestionShopping Cart Project Pin
Montu769-Oct-07 23:01
Montu769-Oct-07 23:01 
AnswerRe: Shopping Cart Project Pin
Paddy Boyd9-Oct-07 23:18
Paddy Boyd9-Oct-07 23:18 
AnswerRe: Shopping Cart Project Pin
Christian Graus9-Oct-07 23:29
protectorChristian Graus9-Oct-07 23:29 
QuestionDatatable mismatch Pin
ShimnaMukundan9-Oct-07 22:51
ShimnaMukundan9-Oct-07 22:51 
AnswerRe: Datatable mismatch Pin
That's Aragon9-Oct-07 23:10
That's Aragon9-Oct-07 23:10 
GeneralRe: Datatable mismatch Pin
N a v a n e e t h9-Oct-07 23:28
N a v a n e e t h9-Oct-07 23:28 
AnswerRe: Datatable mismatch [modified] Pin
Imran Khan Pathan9-Oct-07 23:11
Imran Khan Pathan9-Oct-07 23:11 
GeneralRe: Datatable mismatch Pin
N a v a n e e t h9-Oct-07 23:27
N a v a n e e t h9-Oct-07 23:27 
GeneralRe: Datatable mismatch Pin
Imran Khan Pathan10-Oct-07 0:16
Imran Khan Pathan10-Oct-07 0:16 
Questioniis command problem Pin
Aavesh Agarwal9-Oct-07 22:44
Aavesh Agarwal9-Oct-07 22:44 
AnswerRe: iis command problem Pin
c#ivan10-Oct-07 0:47
c#ivan10-Oct-07 0:47 
GeneralRe: iis command problem Pin
Aavesh Agarwal10-Oct-07 1:01
Aavesh Agarwal10-Oct-07 1:01 

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.