Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to zip the file and send mail?

Status
Not open for further replies.

snehakevin

Technical User
Sep 14, 2003
33
0
0
SG
I am using the following code to send documents through mails.....

MAPISession1.LogonUI = True
MAPISession1.SignOn
MAPMess.SessionID = MAPISession1.SessionID
MAPMess.Compose
MAPMess.RecipAddress = "mailid@xxxxx.com"
MAPMess.ResolveName
MAPMess.MsgSubject = "Testing Email"
MAPMess.MsgNoteText = "message in the body"
MAPMess.AttachmentPathName = "filename to be sent"
MAPMess.Send False
MAPISession1.SignOff

This works fine but I need to zip the file and attach.
How to do this? Please help


 
Use a third party object for zipping the file. There are many avalable...

mmilan
 
I have not done this before. What references are you setting and how do you instantiate them in your example?

Thanks!

Have a great day!

j2consulting@yahoo.com
 
I've done this before with Java. Java's got a pretty straight forward zip package under java.util. Then I just execute the java DOS Command from my VB app. The problem however (there always seem to be a problem with my stuff;> )
is that you need the JRE installed on a PC where you want to run this.

Let me know if you might be intrested in the Java code.
 
Sorry I wasn't clear. My question about instantiation had to do with snehakevin's first post.

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top