使用PowerShell填充电子邮件正文 [英] Fill Email message body using powershell
本文介绍了使用PowerShell填充电子邮件正文的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
现在我已成功完成使用PowerShell登录我的yahoomail页面。但我不知道如何填写邮件正文。这里使用的是 $ IE.document.getElementsByTagName(body) =我的主题但是没有使用。在这里,我发布了我的编码。欢迎所有回复。我使用的是Microsoft Powershell。
Hi All,
Now am successfully done logged my yahoomail page using powershell. But i dont know how to fill message body. Here am using $IE.document.getElementsByTagName("body")="MY SUBJECT" But this not used. Here with i had post my codings. all replies are welcome. Am using Microsoft Powershell.
$url="www.ymail.com"
$username="dhinesh_kumar1@yahoo.com"
$password="xxxxxxxxxx"
$IE=New-Object -comobject InternetExplorer.Application
$IE.visible=$true
$IE.Navigate($url)
While($IE.busy){Start-Sleep 0.5}
[System.Threading.Thread]::Sleep(3000)
$IE.document.getElementById("username").value=$username
$IE.document.getElementById("passwd").value=$password
$IE.document.getElementById(".save").click();
[System.Threading.Thread]::Sleep(5000)
$IE.document.getElementById("global_compose_top").click();
[System.Threading.Thread]::Sleep(5000)
$toaddr="dhkumar11@gmail.com"
$sub_value="Hi guys"
$IE.document.getElementById("to").value=$toaddr
$IE.document.getElementById("Subj").value=$sub_value
$IE.document.getElementsByTagName("body").innerText="THIS IS E-MAIL BODY"
$IE.document.getElementById("send_top").click();
$cmd.Quit();
谢谢和问候,
Dhineshkumar Velmayil。
Thanks and Regards,
Dhineshkumar Velmayil.
推荐答案
IE.document.getElementsByTagName( 身体) =我的主题但这没用过。在这里,我发布了我的编码。欢迎所有回复。我使用的是Microsoft Powershell。
IE.document.getElementsByTagName("body")="MY SUBJECT" But this not used. Here with i had post my codings. all replies are welcome. Am using Microsoft Powershell.
url = www.ymail.com
>
username = dhinesh_kumar1@yahoo.com
username="dhinesh_kumar1@yahoo.com"
这篇关于使用PowerShell填充电子邮件正文的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文