UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

生产力活动

转发电子邮件

UiPath.Mail.Activities.Business.ForwardMailX

描述

重要提示:

新版 Outlook 应用程序会影响此活动。有关更多详细信息,请查看新的 Outlook 对 UiPath Outlook 桌面活动的影响

转发指定的电子邮件或邀请。应该用于当前在 Outlook 桌面应用程序中选择的电子邮件或邀请,或者在遍历 Gmail 或 Outlook 电子邮件时用于遍历电子邮件活动中。此活动必须添加到“使用 Outlook 365”“使用 Gmail”“使用桌面 Outlook 应用程序”活动中。

重要提示:

使用“使用桌面 Outlook 应用程序”活动时,HTML 电子邮件的外观可能与预期不同。建议对正文使用 Word 文档。

配置活动

设计器面板

  • Email - Select Plus on the right side of the field and then, from the menu, select the email to forward. When the activity is inside a For Each Email activity, select CurrentMail to indicate the current mail in the iteration. When automating the Outlook desktop app, you can also select Selected Mail to use the message that is selected in Outlook when the project is executed. Alternatively, you can select Open in Advanced Editor and enter a VB expression.

  • Add To recipients - Select Plus on the right side of the field, and then use one of the options in the menu to select where to forward the email:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,您可以在 Excel 文件中选择其中的电子邮件地址用分号 (;) 分隔的单元格来添加多个收件人,或者在自动化 Outlook 桌面应用程序时,使用执行项目时在 Outlook 中所选电子邮件的“收件人”字段中的电子邮件地址。
    • 使用保存的值 - 以电子邮件地址列表的形式使用您之前保存,以供以后在项目中使用的数据。
    • Text - Enter one or more email addresses separated by semicolon (;) in the Text Builder.
    • 运行时询问 - 执行项目时提示输入收件人。
    • 从剪贴板粘贴 - 将您以前复制的电子邮件地址粘贴到项目中的剪贴板中。
    • Open in Advanced Editor - Enter a VB expression.
  • Add Cc recipients - Select Plus on the right side of the field, and then use one of the options in the menu to select the secondary recipients of the email:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,您可以在 Excel 中选择其中的电子邮件地址用分号 (;) 分隔的单元格来添加多个收件人,或者在自动化 Outlook 桌面应用程序时,选择在执行项目时在 Outlook 中所选电子邮件的“抄送”字段中的电子邮件地址。
    • 使用保存的值 - 以电子邮件地址列表的形式使用您之前保存,以供以后在项目中使用的数据。
    • Text - Enter one or more email addresses separated by semicolon (;) in the Text Builder.
    • 运行时询问 - 执行项目时提示输入收件人。
    • 从剪贴板粘贴 - 将您以前复制的电子邮件地址粘贴到项目中的剪贴板中。
    • Open in Advanced Editor - Enter a VB expression.
  • New subject - Optionally, you can add a new subject for the email. If a new subject is not provided, the default Outlook subject for forwarded emails is used. Select Plus on the right side of the field and then use one of the options in the menu to add a subject for the email:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,您可以选择 Excel 文件中的单元格,或者,在自动化 Outlook 桌面应用程序时,您可以在执行项目时使用在 Outlook 中选择的电子邮件主题。
    • Use Saved Value - Use data that you previously saved for later use in the project.
    • Text - Enter a subject in the Text Builder.
    • 运行时询问 - 执行项目时提示输入主题。
    • 从剪贴板粘贴 - 将您以前复制的值粘贴到项目中的剪贴板中。
    • Open in Advanced Editor - Enter a VB expression.
  • 正文 - 您可以使用 HTML 添加纯文本正文,也可以选择 Word 文档以在电子邮件正文中添加文件。

    • If you select HTML, select Open Editor to start drafting your email using the WYSIWYG HTML editor.

    • If you select Text, select Plus on the right side of the field, and then select one of the options from the menu to add the text for the body of the email:

      • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。
      • Use Saved Value - Use data that you previously saved for later use in the project.
      • Text - Enter the body text in the Text Builder.
      • 运行时询问 - 执行项目时提示输入正文文本。
      • 从剪贴板粘贴 - 将您以前复制的值粘贴到项目中的剪贴板中。
      • Open in Advanced Editor - Enter a VB expression.
    • 如果选择“使用 Word 文档”,请指定要添加到正文中的包含表格、图像、正文格式的 Word 文档。电子邮件正文的格式为 HTML。

    Select Browse next to the field, and then browse to a Word file and select it. Alternatively, you can indicate the path to a Word file by selecting an option from the Plus menu on the right side of the field: * Data from the Project Notebook, a parent Excel file or email account. For example, you can select a cell in an Excel file that contains a path. * Use Saved Value - Use data in the form of a file path that you previously saved for later use in the project. * Text - Enter a path in the Text Builder. * Ask when run - Prompt for the path when the project is executed. * Paste from clipboard - Paste a value that you previously copied to the clipboard in the project. * Open in Advanced Editor - Enter a VB expression.

    :::note
    * The option **Use Word Document** can only be used with the Outlook desktop app.
    * If the Word document you select contains pictures, some of the pictures may not appear in the body of the email that is sent. If a picture fails to appear in the email body, try one of the following workarounds:
    + Open the Word document, remove the picture, and then add the picture again.
    + Change the extension of the Word document to `.zip`, extract the archive, open the file **document.xml** located in the folder **word**, search for the attribute **r:link**, and remove it (for example, `r:link="rId11"`). Save the file, then zip the extracted files again and change the extension back to .`docx`.
    :::
    :::note
    * The option **Use Word Document** can only be used with the Outlook desktop app.
    * If the Word document you select contains pictures, some of the pictures may not appear in the body of the email that is sent. If a picture fails to appear in the email body, try one of the following workarounds:
    + Open the Word document, remove the picture, and then add the picture again.
    + Change the extension of the Word document to `.zip`, extract the archive, open the file **document.xml** located in the folder **word**, search for the attribute **r:link**, and remove it (for example, `r:link="rId11"`). Save the file, then zip the extracted files again and change the extension back to .`docx`.
    :::
    
    • 另存为草稿 - 如果选中,则电子邮件将保存在“草稿”文件夹中,而不是直接发送给选定的收件人。这样一来,您可以在发送前检查电子邮件。默认情况下,此选项处于选中状态。
  • Attachments - Select Files to attach individual files or Folder to attach all the files in a folder. To select the file or folder, select Browse docs image next to the field, and then browse to the file or folder and select it. Alternatively, you can indicate a file or folder path by selecting an option from the Plus menu on the right side of the field:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,您可以在 Excel 文件中选择包含路径的单元格。
    • Use Saved Value - Use data in the form of a path that you previously saved for later use in the project.
    • 文本 - 在文本生成器中输入路径。您可以将文本与 Excel 文件单元格中的公式结合使用,例如,使用“项目笔记本”中的公式为文件名添加日期。
    • 运行时询问 - 执行项目时提示输入路径。
    • 从剪贴板粘贴 - 将您以前复制的路径形式的值粘贴到项目中的剪贴板中。
    • Open in Advanced Editor - Enter a VB expression.

属性面板

常见
  • DisplayName - The name displayed for the activity in the Designer panel.
电子邮件
  • “正文”- 如果选择“文本”作为正文类型,则为电子邮件的纯文本正文。
  • “正文文档路径”- 要用作电子邮件正文的 Word 文档路径(如果选择“Word 文档”作为正文类型)。
  • 新主题 - 在活动主体中查看“新主题”。
输入
  • 电子邮件 - 在活动正文中查看电子邮件
其他
  • 私有 - 选中后将不再以“Verbose”级别记录变量和参数的值。
选项
  • 主体类型- 在活动主体中查看主体
  • “来自文件的 HTML 正文”- 指定使用 HTML 编辑器创建的电子邮件的 HTML 正文。
  • “HTML 模板”- 存储 HTML 模板的文档。如果文档空白,则系统会在您使用编辑器时自动新建模板。
  • “来自文本的 HTML 正文”- 指定从其他来源加载并保存为文本的电子邮件的 HTML 正文。
  • 最大正文文档大小 - 可用作电子邮件正文的 Word 文档的最大大小 (MB)。默认值为 2MB。
  • 保存为草稿 - 请在活动主体中查看“保存为草稿”。
收件人
  • 添加密送收件人 - 添加电子邮件的隐藏收件人,方法与添加收件人抄送收件人的方式类似。
  • 添加抄送收件人- 请参阅活动正文中的添加抄送收件人
  • 添加目标收件人- 请参阅活动正文中的添加目标收件人
发件人
  • 代表发送人 - 有权访问邮箱的其他用户,代表其发送邮件。指定用户的方式与指定“收件人”或“抄送”收件人的方式类似。
  • 描述
  • 配置活动
  • 设计器面板
  • 属性面板

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新