Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
QuestionKiosk Mode Pin
kingletas17-Oct-07 3:54
kingletas17-Oct-07 3:54 
AnswerRe: Kiosk Mode Pin
Luke_ICS17-Oct-07 4:43
Luke_ICS17-Oct-07 4:43 
AnswerRe: Kiosk Mode Pin
TJoe17-Oct-07 6:05
TJoe17-Oct-07 6:05 
GeneralRe: Kiosk Mode Pin
kingletas18-Oct-07 6:32
kingletas18-Oct-07 6:32 
AnswerRe: Kiosk Mode Pin
Dan Neely17-Oct-07 7:12
Dan Neely17-Oct-07 7:12 
GeneralRe: Kiosk Mode Pin
kingletas18-Oct-07 6:35
kingletas18-Oct-07 6:35 
QuestionBubble event in parent control Pin
Tanuja12317-Oct-07 3:38
Tanuja12317-Oct-07 3:38 
QuestionHow do i show a attached image in C# generated outlook email [modified] Pin
willempipi17-Oct-07 3:26
willempipi17-Oct-07 3:26 
Hi,

I made a program that launched a outlook email window and puts a attached file in it:

<br />
private Outlook.Application oApp = new Outlook.Application();<br />
<br />
Outlook.MAPIFolder outBoxfolder = oApp.GetNamespace("MAPI").GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderOutbox);<br />
Outlook.MailItem mItem = (Outlook.MailItem)outBoxfolder.Items.Add(Outlook.OlItemType.olMailItem);<br />
<br />
mItem.Attachments.Add("D:\\test.jpg", Type.Missing, Type.Missing, Type.Missing);<br />
<br />
mItem.To = "";<br />
mItem.BCC = "";<br />
mItem.CC = "";<br />
mItem.Subject = "";<br />
mItem.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;<br />
mItem.HTMLBody = "<img src='test.jpg'>";<br />
mItem.Display(new object());<br />


As you can see i want to display the attached file(image) in my mail, but, it doesn't work. The image is attached and you can see it in the attachments and dubbelclick it so it shows. But you cannot see it in de the body of the mail. The reason is because the imagelink "" in the HTMLBody isn't right, but what is right???

How do i make the link so it shows the image that is located in the attachment on my HTMLBody?

please help me???

greetz Willem



-- modified at 10:24 Wednesday 17th October, 2007
QuestionRe: Still unsolved Pin
willempipi18-Oct-07 3:01
willempipi18-Oct-07 3:01 
QuestionDAL and BLL communication Pin
sarvesh.upadhyay17-Oct-07 3:21
professionalsarvesh.upadhyay17-Oct-07 3:21 
AnswerRe: DAL and BLL communication Pin
il_masacratore17-Oct-07 3:27
il_masacratore17-Oct-07 3:27 
GeneralRe: DAL and BLL communication Pin
sarvesh.upadhyay17-Oct-07 3:36
professionalsarvesh.upadhyay17-Oct-07 3:36 
QuestionWhy the form window is not activated? Pin
Seraph_summer17-Oct-07 3:08
Seraph_summer17-Oct-07 3:08 
AnswerRe: Why the form window is not activated? Pin
il_masacratore17-Oct-07 3:24
il_masacratore17-Oct-07 3:24 
QuestionHow can I hide a txt file [modified] Pin
springtime5417-Oct-07 3:02
springtime5417-Oct-07 3:02 
AnswerRe: How can I hide a txt file Pin
Anthony Mushrow17-Oct-07 3:05
professionalAnthony Mushrow17-Oct-07 3:05 
GeneralRe: How can I hide a txt file Pin
springtime5417-Oct-07 3:13
springtime5417-Oct-07 3:13 
GeneralRe: How can I hide a txt file Pin
Luke_ICS17-Oct-07 3:44
Luke_ICS17-Oct-07 3:44 
GeneralRe: How can I hide a txt file Pin
DotNetWWW17-Oct-07 5:05
DotNetWWW17-Oct-07 5:05 
AnswerRe: How can I hide a txt file Pin
Anthony Mushrow17-Oct-07 3:43
professionalAnthony Mushrow17-Oct-07 3:43 
QuestionRe: How can I hide a txt file Pin
springtime5417-Oct-07 3:59
springtime5417-Oct-07 3:59 
AnswerRe: How can I hide a txt file Pin
Anthony Mushrow17-Oct-07 4:03
professionalAnthony Mushrow17-Oct-07 4:03 
AnswerRe: How can I hide a txt file Pin
Whytespot17-Oct-07 7:22
Whytespot17-Oct-07 7:22 
QuestionCrash Reporting Pin
Mridang Agarwalla17-Oct-07 2:58
Mridang Agarwalla17-Oct-07 2:58 
QuestionData Base Pin
half-life17-Oct-07 2:55
half-life17-Oct-07 2:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.