Click here to Skip to main content
16,007,843 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: On submit, I am facing error: [NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText(UltraGridColumn column) Pin
Ashish Tijare18-Apr-07 3:28
Ashish Tijare18-Apr-07 3:28 
QuestionHow to send Mail in ASP.Net 2.0 Pin
Kuricheti18-Apr-07 2:57
Kuricheti18-Apr-07 2:57 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
kubben18-Apr-07 3:00
kubben18-Apr-07 3:00 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Sandeep Kumar18-Apr-07 3:09
Sandeep Kumar18-Apr-07 3:09 
QuestionRe: How to send Mail in ASP.Net 2.0 [modified] Pin
Kuricheti18-Apr-07 19:24
Kuricheti18-Apr-07 19:24 
GeneralRe: How to send Mail in ASP.Net 2.0 Pin
Sandeep Kumar18-Apr-07 19:56
Sandeep Kumar18-Apr-07 19:56 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Abolfazl Sheikhloo18-Apr-07 3:17
Abolfazl Sheikhloo18-Apr-07 3:17 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Sathesh Sakthivel18-Apr-07 20:01
Sathesh Sakthivel18-Apr-07 20:01 
Try it like this. this is very simple.

string To = "cgodinez@technomex.net";
string From = "mymail@mail.com";
string Subject = "The Famous";
string Body = "Hello World";

SmtpMail.Send(From,To,Subject,Body);

We have to create an object (MailMessage) called myMail
C#
MailMessage myMail = new MailMessage();

myMail.To       = To;
myMail.Cc    = "acarboncopy@cc.com";
myMail.From    = From;
myMail.Subject    = Subject;

myMail.BodyFormat  = MailFormat.Html; // here you can choose: Plain or HTML

string body = "<html><body> Bolded message 
 <P>The Message</P> </body></html>";

myMail.Body    = body; //set the body message

myMail.Attachments.Add(new MailAttachment("c:\\filename.jpg")); //add the attachment

SmtpMail.Send(myMail);


Regards,

Satips.

Questiondatalist paging Pin
saravanan0518-Apr-07 2:52
saravanan0518-Apr-07 2:52 
AnswerRe: datalist paging Pin
enjoycrack18-Apr-07 7:11
enjoycrack18-Apr-07 7:11 
QuestionAuthorize.net Transaction Number Pin
wEb GuRu...18-Apr-07 1:20
wEb GuRu...18-Apr-07 1:20 
Questionhow to create virtual directory? Pin
piya00718-Apr-07 1:02
piya00718-Apr-07 1:02 
AnswerRe: how to create virtual directory? Pin
Sandeep Kumar18-Apr-07 1:36
Sandeep Kumar18-Apr-07 1:36 
GeneralRe: how to create virtual directory? Pin
Atif Ali Bhatti18-Apr-07 2:39
Atif Ali Bhatti18-Apr-07 2:39 
GeneralRe: how to create virtual directory? Pin
enjoycrack18-Apr-07 7:13
enjoycrack18-Apr-07 7:13 
Questionasp.net 2.0 + C# Pin
ritu432118-Apr-07 0:39
ritu432118-Apr-07 0:39 
AnswerRe: asp.net 2.0 + C# Pin
enjoycrack18-Apr-07 7:14
enjoycrack18-Apr-07 7:14 
GeneralRe: asp.net 2.0 + C# Pin
ritu432118-Apr-07 19:41
ritu432118-Apr-07 19:41 
GeneralRe: asp.net 2.0 + C# Pin
enjoycrack19-Apr-07 3:27
enjoycrack19-Apr-07 3:27 
QuestionWith out scroll tab need page...... Pin
Member 387988118-Apr-07 0:22
Member 387988118-Apr-07 0:22 
AnswerRe: With out scroll tab need page...... Pin
enjoycrack18-Apr-07 7:17
enjoycrack18-Apr-07 7:17 
QuestionSERVER APPLICATION ERROR Pin
piya00718-Apr-07 0:16
piya00718-Apr-07 0:16 
AnswerRe: SERVER APPLICATION ERROR Pin
wEb GuRu...18-Apr-07 5:30
wEb GuRu...18-Apr-07 5:30 
QuestionAsp.net update panel [modified] Pin
koleraba17-Apr-07 23:49
koleraba17-Apr-07 23:49 
AnswerRe: Asp.net update panel Pin
enjoycrack18-Apr-07 7:18
enjoycrack18-Apr-07 7:18 

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.