473,394 Members | 1,701 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,394 software developers and data experts.

Programming with Outlook

Hi All,
I'm thinking of including this method of sending attachments using
the code in the link below, it uses Outlook Objects.

How to send attachments in an e-mail message by using Visual Basic .NET
http://support.microsoft.com/default...b;en-us;313803

Several Questions,
1) When I create the Setup Program for my application is it legally
right to include the Outlook dll?

2) If a client w/o MS Outlook uses my app, will the applicaton fail to
"launch" from the start, or just the "form" that uses the outlook dll?

3) I plan to use Outlook Object 10 instead of 11, will version 10 work
with clients with Outlook 2003?

4) Is it possible to "catch" clients w/o Outlook installed?

5) Is it possible to "catch" clients w/ incompatible versions of
Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
10?

Thanks so much!!
Henry :)

Nov 21 '05 #1
4 1388
> Hi All,
I'm thinking of including this method of sending attachments using
the code in the link below, it uses Outlook Objects.

How to send attachments in an e-mail message by using Visual Basic .NET
http://support.microsoft.com/default...b;en-us;313803

Several Questions,
1) When I create the Setup Program for my application is it legally
right to include the Outlook dll?


No it is illegal

Does this than answer the rest of your questions as well.

Cor
Nov 21 '05 #2
Hi Henry,

You might consider using the MailMessage class instead:
http://msdn.microsoft.com/library/de...classtopic.asp

Hope this helps,
Stefan
<he***********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi All,
I'm thinking of including this method of sending attachments using
the code in the link below, it uses Outlook Objects.

How to send attachments in an e-mail message by using Visual Basic .NET
http://support.microsoft.com/default...b;en-us;313803

Several Questions,
1) When I create the Setup Program for my application is it legally
right to include the Outlook dll?

2) If a client w/o MS Outlook uses my app, will the applicaton fail to
"launch" from the start, or just the "form" that uses the outlook dll?

3) I plan to use Outlook Object 10 instead of 11, will version 10 work
with clients with Outlook 2003?

4) Is it possible to "catch" clients w/o Outlook installed?

5) Is it possible to "catch" clients w/ incompatible versions of
Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
10?

Thanks so much!!
Henry :)

Nov 21 '05 #3
Thanks for the quick reply,
I guess I'll have to do a late bind of the Outlook object instead.

Thanks again!!
Henry :)

Cor Ligthert [MVP] wrote:
Hi All,
I'm thinking of including this method of sending attachments using
the code in the link below, it uses Outlook Objects.

How to send attachments in an e-mail message by using Visual Basic .NET
http://support.microsoft.com/default...b;en-us;313803

Several Questions,
1) When I create the Setup Program for my application is it legally
right to include the Outlook dll?


No it is illegal

Does this than answer the rest of your questions as well.

Cor


Nov 21 '05 #4
On 23 Jul 2005 20:49:22 -0700, he***********@gmail.com wrote:

¤ Hi All,
¤ I'm thinking of including this method of sending attachments using
¤ the code in the link below, it uses Outlook Objects.
¤
¤ How to send attachments in an e-mail message by using Visual Basic .NET
¤ http://support.microsoft.com/default...b;en-us;313803
¤
¤ Several Questions,
¤ 1) When I create the Setup Program for my application is it legally
¤ right to include the Outlook dll?
¤

No.

¤ 2) If a client w/o MS Outlook uses my app, will the applicaton fail to
¤ "launch" from the start, or just the "form" that uses the outlook dll?
¤

Not if you use late binding, which you should use if you're supporting multiple versions of Outlook.

¤ 3) I plan to use Outlook Object 10 instead of 11, will version 10 work
¤ with clients with Outlook 2003?
¤

Probably, but you should always develop for the oldest version supported.

¤ 4) Is it possible to "catch" clients w/o Outlook installed?
¤

Yes. You can check if Outlook has been installed using API function calls, such as FindExecutable,
or trap the error that occurs when you attempt to create the Outlook object.

¤ 5) Is it possible to "catch" clients w/ incompatible versions of
¤ Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
¤ 10?

Probably. The most reliable method would be to find the Outlook executable (using FindExecutable)
and then retrieve the version info. Below is an example:

Declare Function FindExecutable Lib "shell32.dll" Alias "FindExecutableA" (ByVal lpFile As
String, _
ByVal lpDirectory As
String, _
ByVal lpResult As
System.Text.StringBuilder) As Int32

Function IsOutlookInstalled(ByRef FileVersionMajor As String) As Boolean

Dim DummyFile As String
Dim FileDir As String

Dim FilePath As New System.Text.StringBuilder(255)
DummyFile = "e:\My Documents\dummy.fav"

If FindExecutable(DummyFile, FileDir, FilePath) > 32 Then
Console.WriteLine(FilePath)
IsOutlookInstalled = True
FileVersionMajor =
System.Diagnostics.FileVersionInfo.GetVersionInfo( FilePath.ToString).FileMajorPart
End If

End Function
IsOutlookInstalled(FileVersionMajor)

Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #5

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

Similar topics

2
by: Purnachender Mamindla | last post by:
How can i get the senders email id using mapi control library in c#?
2
by: Chiara | last post by:
Hope this is the right place to post it ... I need to interface my VC++ application with Outlook Express 6.0. I'd need: - access to email messages in Outlook folders, - eventually, copy email...
0
by: abhijit | last post by:
Can any one give me an idea of how all the messeges that come in my outlook inbox can be copied with attachment into another folder say c:\folder.I need this functionality in my asp.net project...
2
by: foufi | last post by:
For a programm that take control of outlook i need to find the properties which give me the last date of a modififaction of an item What is it ? Thanks !!!
2
by: Shahin | last post by:
Greetings, I have a problem. I have a client that has an database full of email address. He wants me to make it so when he types an email in the TO box that it check the database instead of...
6
by: Ricky W. Hunt | last post by:
It's dawning on my a lot of my problems with VB.NET is I'm still approaching it in the same way I've programmed since the late 70's. I've always been very structured, flow-charted everything, used...
17
by: Liam.M | last post by:
Hey guys, Forgive me if my question my be alittle silly, but I would very much appreciate and assistance that could be given! My situation is as follows: I have created a Button, and set...
22
by: Sharrukin Amiri | last post by:
Can anyone give me a head start on programming outlook to send and recieve mail via VB 2005. I want to automatically send a unique pin number to a customer who's credit card was approved. I am...
5
by: =?Utf-8?B?YW5rdQ==?= | last post by:
Hey folks, I have created two empty.pst files and it created two empty folders both named "Personal Folder". This is fine, but my problem is I have two .pst files, p1 and p2. I want to move...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.