$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'/> <a href='https://www.google.co.in/'><input type='image' src='$file2' name='reject' value='Submit'/></a> <br/>"
$Mail.HTMLBody += "Kindly approve/reject the request"
$Mail.Send()
我使用上面的powershell脚本将电子邮件发送到Outlook电子邮件地址。现在我想要包含一个位于我的笔记本电脑上的外部javascript文件,并希望在上面的代码中使用这个脚本来处理图像。