Log in

View Full Version : Solved: Saving Emails in Outlook



jinesh1986
10-29-2008, 03:36 AM
Dear Friends,

Could any one help me on this?

I have a program (working Well) which takes a search string from Excel and search in outlook for emails which contains that string and save the attachments in a folder (in local drive) where the path is also passed from Excel.

I want to save a copy of the email as well in the same folder. Preferrably in txt format. So that the information contained in the email body is also saved in the folder.

Any help would be much appreciated.

Thanks
Jinesh

JP2112
10-30-2008, 05:41 AM
Hi Jinesh,

There was a thread on this forum not too long ago that explains how to save a mail item as a file.

I'm not allowed to post links yet, but if you search this forum for the subject "Saving email and attachements to hardrive macro/rule" you should be able to find it.

Just change the extension to ".txt" and the type to "olTxt".

HTH,
JP



Dear Friends,

Could any one help me on this?

I have a program (working Well) which takes a search string from Excel and search in outlook for emails which contains that string and save the attachments in a folder (in local drive) where the path is also passed from Excel.

I want to save a copy of the email as well in the same folder. Preferrably in txt format. So that the information contained in the email body is also saved in the folder.

Any help would be much appreciated.

Thanks
Jinesh

jinesh1986
11-08-2008, 12:44 AM
Dear JP,

Thank you so much. I read your code and successfully implemented to suit my needs.

Thanks again for directing me to the correct place.

Regards
Jinesh

JP2112
11-08-2008, 04:33 AM
Glad to hear it!

--JP