Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-12-2007, 12:39 PM   #1 (permalink)
In The Zone
 
blademast3r's Avatar
 
Join Date: Sep 2006
Location: Island of Time
Posts: 413
Talking How to send mail from C# form??


hey coders!

how exacltly do i send a mail from a c# app usin c# code...i kno it has smthin to do wid the system.net.mail class but how exaclty do i implement it??

the mail shud basically contain a subject, sender nd mail contennt....
blademast3r is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 08-12-2007, 01:15 PM   #2 (permalink)
Rubik's Uncle!!
 
Charan's Avatar
 
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,783
Default Re: How to send mail from C# form??

Check the System.web.mail; There is a class called MailMessage from which you can send the mail

you can build the email message with properties like from , to , cc , bcc , priority , subject , body etc etc,
Once you built the message, you can use the SMTP mail object to send message you just created.

I will not be posting the code for this here cause others may missuse it. PM me if you want a sample code.

And do you have your own SMTP mail server? are you using this is ASP.NET for winform application?
Charan is offline  
Old 26-02-2009, 12:10 AM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Feb 2009
Posts: 1
Default Re: How to send mail from C# form??

hi, there is a good sample in that link, i hope it helps you

http://www.expvice.com/code.aspx?id=16
expvice is offline  
Old 26-02-2009, 05:31 PM   #4 (permalink)
Dreaming Future
 
kin.vachhani's Avatar
 
Join Date: May 2005
Location: \internet\home
Posts: 177
Default Re: How to send mail from C# form??

Quote:
Originally Posted by expvice View Post
hi, there is a good sample in that link, i hope it helps you

http://www.expvice.com/code.aspx?id=16
The link is very nice ful...thx bro
__________________
World without Computer is like a man without Brain.....
kin.vachhani is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Bank Draft & Form for Renewal of Digit But Not REceived Nirmal Kumar Mishra QnA (read only) 4 19-12-2005 01:42 PM
how to send the same mail to multiple people? abracadabra Internet & WWW 1 03-12-2005 11:35 PM
can i send photos from yahoo mail? Saharika Internet & WWW 7 07-05-2005 07:25 PM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2