Click here to Skip to main content
15,888,330 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
i want to make application in which user send the mail to other person....any one give me help for this task.....
Posted

1 solution

Hi
since you have not added much details I had to do some guess-work.
I assume you want to send the email using an existing account, handling everything such as message subject, sender, receiver and content in your own application.

If my assumption is true then I highly recommend you to have a look at the SmtpClient and the MailMessage class which both can be found in the System.Net.Mail[^] namespace of the .Net Framework.
Basically there is a SmtpClient which can send a MailMessage. The MailMessage has a MailAddress or, if the email goes to more than one receiver, a MailAddressCollection to which the email is sent (Same for CC and BCC). As in every usual email you can decide if the MailMessage is formatted as plain text or HTML, which priority it has and add attachments to it.


Hope I was helpful.

cheers,
Marco Bertschi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900