Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi together:-)

i have the following Problem:

i just want to put an inline image in my emailmessage...

however, it is always attached...

my code:

Content-Type: image/cgm
Content-Transfer-Encoding: base64
Content-Disposition: inline

[image]

why is it attached, even tough i declared it inline? (the Image is a jpeg)

spent already 16 hours at this problem......


thx for your help;-)
Posted
Updated 6-May-14 5:28am
v2
Comments
CHill60 6-May-14 11:35am    
I presume none of the solutions on your previous post helped? how to put a bitmap in an email[^].
Without seeing your code we cannot possibly help you
Sergey Alexandrovich Kryukov 6-May-14 11:56am    
This is correct content disposition. Try with some other mail client, maybe you are using incorrect one...
—SA
Member 10781325 7-May-14 5:39am    
thx for the quick anwsers!<br><br>
i am using gmail, that should be a good mail Client... or not?^^<br><br>
 <br><br>
i am using the send method of MSDN (http://msdn.microsoft.com/en-us/library/windows/desktop/ms740149(v=vs.85).aspx)<br><br>
 <br><br>
so i send several strings to a socket. I am sending the following strings:<br><br>
 <br><br>
MAIL FROM:<example@gmail.ch><br><br>
RCPT TO:<example@gmail.com><br><br>
DATA<br><br>
Content-Type: image/cgm<br><br>
Content-Transfer-Encoding: base64<br><br>
Content-Disposition: inline<br><br>
--encoded image---<br><br>
.<br><br>
quit<br><br>
 <br><br>
what is wrong here...?:-)
Member 10781325 7-May-14 16:12pm    
any idea what is wrong?
i am sooo exhausted...
Member 10781325 8-May-14 8:34am    
has someone code, that works?:-)

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