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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automatic email multiple attachment of *.txt 1

Status
Not open for further replies.

alhous

Instructor
Jun 16, 2003
2
CA
thread329-728333
I have used this script it works as described.
Is it possible to change it so it could attach multiple attachments

objMailItem.Attachments.Add "c:\ahtransfer\*.txt"

I have text files which have changeable prefixes I want to attach all of them to an email
 
I don't think you can use a wildcard. If you knew the file names you could simply add additional attachment lines to the script.

Alternatively you can add to the script a command to zip all of the files and then attach just the one.

-- Jason
"It's Just Ones and Zeros
 
Thanks I think the zip file choice would work.

080711i.txt
080711e.txt

The text files would appear as above
How could I zip them within the script that I described.

I presume that the code would preceed the email commands
Thanks for the quick response
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top