File content to be the text body of mail

  • Thread starter Thread starter sobanbabu
  • Start date Start date
S

sobanbabu

Hi

Currenlty I am running a VB script to copy a file from a ftp server and
send this as an attachment to a group of users. Instead of adding it as
an attachment I want to copy the file and content in to the Text part
of mail.
Request your in help.

Thanks and regads
Sobanbabu
 
Set fso = CreateObject("Scripting.FileSystemObject")
Set ts = fso.OpenTextFile("c:\testfile.htm", 1)
strText = ts.ReadAll
objMsg.Body = strText

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top