473,383 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Convert this VB command to vb.net?

Here is a vb snippet that builds an HTML formatted email and embeds an image
into it:

objEmail.HtmlBody="<img src=CID:1>"
objEmail.HtmlEmbeddedObjs.Add Item.Path, 1, ItemOriginalPath
objEmail.SendMail

I can't find the equivalent in .net where you can assign a CID to an image
tag. If you try to attached the image in .net, you get mixed results (i.e.
Outlook express can't display it properly, Outlook 2000 looks fine, but also
shows that you have an attachment). I have found a couple of people selling
email packages that embeds the image.... >:-(

Ho do you do this in .net?

Thanks. -Rob T.
Nov 18 '05 #1
4 981
Hi Rob,

Interesting, I assume that before this is a Set or someting to the object,
do you know what is the class you are using in this?
objEmail.HtmlBody="<img src=CID:1>"
objEmail.HtmlEmbeddedObjs.Add Item.Path, 1, ItemOriginalPath
objEmail.SendMail


Cor
Nov 18 '05 #2
My apologies... The email object was calling a 3rd party class... I was
looking through some old code and didn't realize it was in there.

I would still like to know how to embed a email image without using a 3rd
party package........
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:eo**************@TK2MSFTNGP11.phx.gbl...
Hi Rob,

Interesting, I assume that before this is a Set or someting to the object,
do you know what is the class you are using in this?
objEmail.HtmlBody="<img src=CID:1>"
objEmail.HtmlEmbeddedObjs.Add Item.Path, 1, ItemOriginalPath
objEmail.SendMail


Cor

Nov 18 '05 #3
Hi Rob,
My apologies... The email object was calling a 3rd party class... I was
looking through some old code and didn't realize it was in there.

I would still like to know how to embed a email image without using a 3rd
party package........


Therefore I said interesting, because that is a big wish from a lot of
people.

Cor
Nov 18 '05 #4
Just as a follow up...I've written my own class that embeds images...so far,
so good!
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Of**************@TK2MSFTNGP09.phx.gbl...
Hi Rob,
My apologies... The email object was calling a 3rd party class... I was looking through some old code and didn't realize it was in there.

I would still like to know how to embed a email image without using a 3rd party package........


Therefore I said interesting, because that is a big wish from a lot of
people.

Cor

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: veereshai | last post by:
i want to copy the functions from my source file into a new file...and convert each function into a new object file by compiling it. now, i want to invoke the function using the object file i have...
2
by: Robert Fischbacher | last post by:
Hello, does anybody know if there is a existing tool that can convert valid C# Code to a XML structure? I tried to parse a C# program to analyze the structure of the existing program code, but...
1
by: Glenn Wilson | last post by:
I have been given a small project and was looking for some help. I need to convert doc file to tif documents, now I can do this by using a printer driver to do the change, but I need to be able to...
5
by: darrel | last post by:
I have the following right now to enter a date into SQL getting the data from some pull down menus: ------------------------------------------------- dim dateCCJApprovedDate as DateTime if...
6
by: | last post by:
How do I convert a single character, e.g. "a" into char for use in the 'split' command? p.s. I have option strict on Tia.
9
by: ka1cqd | last post by:
I have been looking all over the place for a method to take command line arguments and convert them to a string or wstring so i can process the data and then covert the resulting strings to...
4
by: Mike Collins | last post by:
This worked in the command window while in debug mode ?table.Rows.ItemArray.ToString() "f0165f94-648f-4997-b578-11d89c8b1f61" But gives the error below when I compile. Cannot implicitly...
3
by: femtox77 | last post by:
Hi to all!!! I'm trying to convert a pdf file into an image, for example JPG or PNG format, with ImageMagick. I use the command line. For example: convert header.pdf header.jpg. But I obtain a...
11
by: lenygold via DBMonster.com | last post by:
I am tryieng to convert our time consuming recursive queries too very efficient queries based on nested set model. The only problem is to convert an adjacency list model into a nested set model,...
0
by: =?Utf-8?B?cm9uZSBtYXRpYXM=?= | last post by:
I have the same task to do but everytime I tried to parse my code I get a null value returned after executing "dtMaterials.WriteXml(swMaterials);". I am using the following code: Hope you can hep...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.