email - How to run an external javascript file in powershell while sending mail through powershell to outlook -


$file1='http://t2.gstatic.com/images?q=tbn:and9gcqrdbaqlyhje1pwm88ldsa9dez-nqk0br0dkpgl1gydpvonmdvpcq' $file2='http://images.clipartlogo.com/files/ss/thumb/709/70951033/illustration-of-red-cross-mark_small.jpg'  $outlook = new-object -comobject outlook.application $mail = $outlook.createitem(0)  $mail.to = "email1" $mail.recipients.add("email2") $mail.subject = "new request" $mail.htmlbody = " <a href='http://www.w3schools.com'><input type='image' src='$file1' name='approve' value='submit'/>&nbsp;&nbsp;&nbsp;<a href='https://www.google.co.in/'><input type='image' src='$file2' name='reject' value='submit'/></a> <br/>" $mail.htmlbody += "kindly approve/reject request"  $mail.send() 

i using above powershell script send email outlook email address. want include external javascript file located on laptop , want use script in above code doing work images.


Comments