Click here to Skip to main content
15,905,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to send image by email from c# text editor in window based application

The actual problem is that when we insert image in text editor and Email to the destination,
the image is not shown; only text is display

The editor is made by the use of webBrowser1 and toolstrip in usercontrol.cs file after that it will be drag and drop to the window form from the toolbox
Posted
Comments
ZurdoDev 2-Jan-14 7:31am    
You need to post the relevant code so we can see what is going on.
Richard MacCutchan 2-Jan-14 7:38am    
You don't insert an image into a text edoitor, you just need to add it as an attachment to your email message.

1 solution

well you can add attachment with the email using smptclient class from system.net.mail. however you can not directly display image on the email. however if you want to do so you can upload those images so when the email is open it will load the images from that server where you have upload the images, however again it will treated as external content so you need to click on download pictures from given link if you are using microsoft outlook or you need to click on display images below if you are view email from Gmail.


for sending iamge as an attachment you can try

https://www.google.co.in/search?q=send+email+with+attachment+c%23&oq=send+email+with&aqs=chrome.3.69i57j0l5.5080j0j8&sourceid=chrome&espv=210&es_sm=122&ie=UTF-8[^]
 
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