Solved

How to Zip files together and email using MS-outlook?

Posted on 2006-06-15
2
285 Views
Last Modified: 2008-01-09
Hi,

I have a program here, in which I want to zip the CSX file and the tiff images together contained in the data directory and email them to an email address (which will be taken from the database) using MS-outlook.

How can I do this?

Please help.

Thanks.
0
Comment
Question by:Reeds
2 Comments
 
LVL 4

Accepted Solution

by:
jtaylor8181 earned 500 total points
ID: 16913295
I know of a third party DLL that will allow you to zip up files.  Its called ICSharpCode.Zlib.  With that, it will give what you need inorder to zip up any file.

You can you use to send the file through the email.

Dim msg As New System.Net.Mail.MailMessage("from email address", "to email address", "file name", "a message you want to include in the email")
Dim mailClient As New System.Net.Mail.SmtpClient("host name")
mailClient.Send(msg)
msg.Dispose()

jtaylor8181
0
 

Author Comment

by:Reeds
ID: 16913817
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now