Click here to Skip to main content
15,890,717 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As title.
I'm developing a system that can send a QR Code image to a member via e-mail. I want to build it in a Web Service for usage of many clients. The current method I use is saving the QR Code to be a real image file, and attaching it when sending e-mail, but failed when I use it on web service. The message says some error occurred on GDI+.
I've searched on Google with some keywords C#, e-mail, and image. Many of the first searched results are teaching the way with attaching image with image file name. How can I e-mail to someone with image but no need to save it as a file?

What I have tried:

Google with some keywords C#, e-mail, and image
Posted
Updated 4-Sep-16 21:53pm
v2

1 solution

Convert it to a Base64 string and embed it, or use it as a CID: Embedding Images in Your Emails. The Facts. | SendGrid[^]
But...it still isn't going to show in many cases: there is no system which will guarantee that images are displayed in all email clients. The best approach is to provide a "click here" link to the image via a webpage if the user really needs it and it isn't displayed.
 
Share this answer
 
Comments
Momoko Asahina 708H 5-Sep-16 22:55pm    
But it is a pity that I didn't master in webpage programming.

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