如何在 Outlook 中定义具有预设主题和存根正文的电子邮件模板 - 而不发送它?

发布于 2024-11-18 22:55:35 字数 364 浏览 1 评论 0原文

我必须发送每日更新电子邮件,并且想知道如何自动删除该电子邮件。我可能会将其添加到我的启动项中,这样每天早上当我打开计算机并启动 Outlook 和浏览器时,电子邮件就会准备好供我简单地详细说明我上午和下午的工作。只有在一天结束时,我才会手动填写要发送的地址。

编辑 - 08/07/11 16:43
事后看来,这听起来像是我想要的模板,其中以编程方式在主题中设置日期,并且我希望模板化的电子邮件能够在早上第一件事自动打开

所有电子邮件都采用相同的格式;主题行是“每日更新 dd/mm/yy” 然后在正文中:

上午

  • 列表项目

下午

  • 列表项目

I have to send a daily update email and would like to know how I can have the email stubbed out automatically. I would probably add this to my start up, so each morning when I turn my computer on as well as launching Outlook and my browsers the email would be sitting ready for me to simply detail my morning and afternoon work. Only at the end of the day would I manually fill out the addresses to send it to.

Edit - 08/07/11 16:43
It sounds, in hind-sight, like a template is what I want, one where the date is programmatically set in the subject and that I would like the templated email to be opened automatically 1st thing in the morning

The emails all take the same format; the subject line is "Daily update dd/mm/yy"
Then in the body:

Morning

  • List item

Afternoon

  • List item

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

依 靠 2024-11-25 22:55:36

以下是在 PowerShell 中发送电子邮件的小脚本的源代码:

Param([string[]] $to = $(throw "Please specifie a destination address"),
      [string] $subject = "<No Subject>",
      [string] $body = $(throw "Please specify message content"),
      [string] $smtpHost = $(throw "please specify an SMTP server address"),
      [string] $from = "$($env:UserName)@silogix-fr.com"
)

## Create the message
$email = New-Object System.Net.Mail.MailMessage

## Fill the fields
foreach($mailTo in $to)
{
  $email.To.Add($mailTo)
}

$email.From = $from
$email.Subject = $subject
$email.Body = $body

## Send the message
$client = New-Object System.Net.Mail.SmtpClient $smtpHost
$client.UseDefaultCredentials = $true
$client.Send($email)

Here is the source of a small script sending an email in PowerShell :

Param([string[]] $to = $(throw "Please specifie a destination address"),
      [string] $subject = "<No Subject>",
      [string] $body = $(throw "Please specify message content"),
      [string] $smtpHost = $(throw "please specify an SMTP server address"),
      [string] $from = "$($env:UserName)@silogix-fr.com"
)

## Create the message
$email = New-Object System.Net.Mail.MailMessage

## Fill the fields
foreach($mailTo in $to)
{
  $email.To.Add($mailTo)
}

$email.From = $from
$email.Subject = $subject
$email.Body = $body

## Send the message
$client = New-Object System.Net.Mail.SmtpClient $smtpHost
$client.UseDefaultCredentials = $true
$client.Send($email)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文