Wahoo! That did it!!! Many thanks as this is going to make some doctors happy. Next question - how can I use a text file of addresses? I have to send different files to about 15 doctors and I have the text file created.
this is an example:
folder,email doc1,doc1@yahoo.com
I am betting I need to change line one in the text and I know I will need to change the '$MailItem.To = "recipient@@domain.com"' to point to the file, but I cannot find the post regarding this - I saw one out there somewhere.. dangit.
Also there are multiple attachments: $attach[0], "$home$folder\(current month)\"+$attach[0], $attach[1], "$home$folder\(current month)\"+$attach[1], the $home and $folder are previously defined. should I just use
$MailItem.Attachments.Add($home$folder\(current month)\*.*) ??
Thanks a bunch!!
|