Thanks for posting this!
Do you know how to change it so that it will embed the document/picture with a preview on the email?
I imagine it would be between these two lines:
$AttachME = $MailDoc.CREATERICHTEXTITEM($filename)
$EmbedObj = $AttachME.EMBEDOBJECT(1454, "", $fullpath, $filename)
Also how can I send two attachments?
Thanks!