问题描述
想通过powershell更新以下sendgrid个性化json文件,以添加一个电子邮件ID。
发件人:-
{
"personalizations": [{
"to": [{"email": "[email protected]"},{"email": "[email protected]"}]
}]
}
收件人:-
{
"personalizations": [{
"to": [{"email": "[email protected]"},{"email": "[email protected]"},{"email": "[email protected]"}]
}]
}
尝试将其保存到文件中并使用Add-Member,但这没有用。
$EmailTemplateFilePath = "C:\EmailTemplate.json"
$body = [System.IO.File]::ReadAllText($EmailTemplateFilePath)
$body = ConvertFrom-Json -InputObject $body
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)