HI
I want email ID is to be entered by the user and send email to the that person. How to write the code for that.
Thanks
Kriitka
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 11:02 PM EDT
declare one textbox in your form and in button click
string toMailId = textBox1.Text;
Regards,
Iftikar
Iftikar HussainRank #423 · 5.9K reputationPosted Aug 25, 2013, 10:51 PM EDT
Are you looking in Windows Application?
Regards,
Iftikar
kritika RanaRank #7,001 · 251 reputationPosted Aug 25, 2013, 10:58 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 25, 2013, 11:00 PM EDT
refer to this link
http://www.c-sharpcorner.com/UploadFile/deepak.sharma00/send-email-from-C-Sharp-windows-application-using-gmail-smtp/
http://www.codeproject.com/Articles/8280/Sending-Emails-from-C-Application-using-default-SM
kritika RanaRank #7,001 · 251 reputationPosted Aug 25, 2013, 11:11 PM EDT
Kritika