UiPath Documentation
activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

生産性を高めるアクティビティ

メールを転送

UiPath.Mail.Activities.Business.ForwardMailX

説明

重要:

新しいバージョンの Outlook アプリケーションは、このアクティビティに影響を与えます。詳しくは、「新しい Outlook が UiPath Outlook Desktop アクティビティに与える影響」をご覧ください。

指定したメールまたは招待を転送します。Gmail や Outlook のメールを反復処理する際に、Outlook デスクトップ アプリまたは [ 繰り返し (各メール )] アクティビティで現在選択されているメールまたは招待に使用する必要があります。このアクティビティは、[ Outlook 365 を使用]、[ Gmail を使用]、または [デスクトップ版 Outlook アプリを使用 ] アクティビティ内に追加する必要があります。

重要:

HTML メールは、[デスクトップ版 Outlook アプリを使用] アクティビティの使用時には、期待どおりに表示されない場合があります。本文には 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 で選択されているメールの [宛先] フィールドのメール アドレスを使用したりできます。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存した、メール アドレスのリスト形式のデータを使用します。
    • テキスト - テキスト ビルダーでセミコロン (;) で区切られた 1 つ以上のメール アドレスを入力します。
    • 実行時に確認 - プロジェクトの実行時に受信者の入力を求めます。
    • クリップボードから貼り付け - プロジェクトのクリップボードに以前にコピーしたメール アドレスを貼り付けます。
    • 詳細エディターを開く - VB の式を入力します。
  • 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 で選択されているメールの [Cc] フィールドのメール アドレスを使用したりできます。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存した、メール アドレスのリスト形式のデータを使用します。
    • テキスト - テキスト ビルダーでセミコロン (;) で区切られた 1 つ以上のメール アドレスを入力します。
    • 実行時に確認 - プロジェクトの実行時に受信者の入力を求めます。
    • クリップボードから貼り付け - プロジェクトのクリップボードに以前にコピーしたメール アドレスを貼り付けます。
    • 詳細エディターを開く - VB の式を入力します。
  • 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 で選択されているメールの件名を使用したりできます。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存したデータを使用します。
    • テキスト - テキスト ビルダーで件名を入力します。
    • 実行時に確認 - プロジェクトの実行時に件名の入力を求めます。
    • クリップボードから貼り付け - プロジェクトのクリップボードに以前にコピーした値を貼り付けます。
    • 詳細エディターを開く - VB の式を入力します。
  • 本文 - プレーン テキストの本文を追加するか、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 ファイルまたはメール アカウントからのデータです。
      • 保存された値を使用 - プロジェクトで後で使用するために以前保存したデータを使用します。
      • テキスト - テキスト ビルダーで本文のテキストを入力します。
      • 実行時に確認 - プロジェクトの実行時に本文テキストの入力を求めます。
      • クリップボードから貼り付け - プロジェクトのクリップボードに以前にコピーした値を貼り付けます。
      • 詳細エディターを開く - VB の式を入力します。
    • [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 ファイルのセルを選択します。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存したパス形式のデータを使用します。
    • テキスト - テキスト ビルダーでパスを入力します。テキストに Excel ファイルのセルの数式を結合できます。たとえば、プロジェクト ノートブックの数式を使用して、ファイル名に日付を追加できます。
    • 実行時に確認 - プロジェクトの実行時にパスの入力を求めます。
    • クリップボードから貼り付け - プロジェクトのクリップボードに以前にコピーした値をパスの形式で貼り付けます。
    • 詳細エディターを開く - VB の式を入力します。

プロパティ パネル

共通
  • 表示名 - デザイナー パネルに表示されるアクティビティの名前です。
メール
  • 本文 - 本文の種類として [テキスト] が選択されている場合、メールのプレーンテキストの本文です。
  • メール本文のドキュメントのファイル パス - 本文の種類として [Word ドキュメント] が選択されている場合、メールの本文として使用する Word 文書へのパスです。
  • 新しい件名 - 「アクティビティの本体」の「新しい件名」をご覧ください。
入力
  • メール - 「アクティビティの本体」の「メール」をご覧ください。
その他
  • プライベート - オンにした場合、変数および引数の値が Verbose レベルでログに出力されなくなります。
オプション
  • 本文の種類 -「アクティビティの本体」の「本文」をご覧ください。
  • ファイルからの HTML 本文 - HTML エディターを使用して作成されたメールの HTML 本文を指定します。
  • HTML テンプレート - HTML テンプレートを保存するドキュメントです。空白の場合、エディターを使用すると新しいテンプレートが自動で作成されます。
  • テキストからの HTML 本文 - 異なるソースから読み込まれ、テキストとして保存されたメールの HTML 本文を指定します。
  • 本文ドキュメントの最大サイズ (MB) - メールの本文として使用可能な Word 文書の最大サイズ (MB) です。既定値は 2 MB です。
  • 下書きとして保存 - 「アクティビティの本体」の「下書きとして保存」をご覧ください。
受信者
  • BCC を追加 - メールの非表示の受信者を、[宛先] および [CC] の受信者と同様に追加します。
  • CC を追加 - 「アクティビティの本体」の「CC を追加」をご覧ください。
  • 宛先 (TO) を追加 - 「アクティビティの本体」の「宛先 (TO) を追加」をご覧ください。
送信者
  • 次の代理として送信 - メッセージの送信先に代わってメールボックスにアクセスできる別のユーザー。[送信先] または [Cc] 受信者を指定するのと同様の方法でユーザーを指定します。
  • 説明
  • アクティビティの構成
  • デザイナー パネル
  • プロパティ パネル

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得