{"id":19607202,"url":"https://github.com/robocorp/example-windows-outlook","last_synced_at":"2026-05-13T08:02:49.917Z","repository":{"id":42676520,"uuid":"356027223","full_name":"robocorp/example-windows-outlook","owner":"robocorp","description":"This robot sends email using Windows Outlook application UI. Application is launched or already open application is used.","archived":false,"fork":false,"pushed_at":"2023-04-12T11:29:21.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-09T09:26:55.880Z","etag":null,"topics":["email","outlook","robocorp","robot","robotframework","rpa","windows"],"latest_commit_sha":null,"homepage":"","language":"RobotFramework","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robocorp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-08T19:32:38.000Z","updated_at":"2024-01-23T14:09:26.000Z","dependencies_parsed_at":"2025-01-10T08:45:46.355Z","dependency_job_id":null,"html_url":"https://github.com/robocorp/example-windows-outlook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-windows-outlook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-windows-outlook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-windows-outlook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robocorp%2Fexample-windows-outlook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robocorp","download_url":"https://codeload.github.com/robocorp/example-windows-outlook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240895178,"owners_count":19874941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","outlook","robocorp","robot","robotframework","rpa","windows"],"created_at":"2024-11-11T10:09:15.457Z","updated_at":"2026-05-13T08:02:44.867Z","avatar_url":"https://github.com/robocorp.png","language":"RobotFramework","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Send e-mails with the Outlook application on Windows\n\nThis example requires a working Outlook installation on a Windows system and a user\nalready configured and logged on.\n\nDemo recording: https://www.loom.com/share/2b516869a9564fce85660229e1d6dc26\n\n## Environment variables setup\n\n- `OUTLOOK_ACCOUNT` (REQUIRED): This variable incorporates the Outlook account name.\n  (so the app window can be correctly identified and controlled)\n- `EMAIL_RECIPIENT` (REQUIRED): To whom to send the e-mail. (can be the same address as\n  above)\n- `EMAIL_ATTACHMENT` (OPTIONAL): A file path to a file to attach. (can be relative)\n- `EMAIL_BODY` (OPTIONAL): A path to a file containing the content of the e-mail body.\n  (make sure that this contains an `\u003cATTACHMENT_TEXT\u003e` placeholder inside, as this\n  will be replaced by the file path you want to attach for confirmation purposes)\n\nOur default [body](devdata/email_body.txt) contains:\n```text\nGreetings!\n\nThis e-mail has been sent by a Robocorp robot.\n\u003cATTACHMENT_TEXT\u003e\nYou can find my source at https://github.com/robocorp/example-windows-outlook\n\nBest Regards,\nMark the Robot\n```\n\n## Subtasks\n\nThe main task (`Send email with Outlook application on Windows`) calls the following\nkeywords:\n\n- `Set variables for this task`: Sets the final e-mail body content.\n- `Open new Outlook or use the currently open one`: Ensures an active Outlook app open.\n- `Press New Email button and send one`: Sends the e-mail with/out an attachment.\n\n## Workarounds in use to improve automation efficiency\n\n- Clipboard is used in some places to paste text into input fields / text areas instead\n  of sending keystrokes (faster). The clipboard is cleared with the `Teardown Actions`\n  keyword.\n- A default e-mail body text is read from the [email_body.txt](devdata/email_body.txt)\n  file in the absence of a custom body provided by the `EMAIL_BODY` environment\n  variable. The file content should include an `\u003cATTACHMENT_TEXT\u003e` text inside, which\n  will be replaced with the file name of the attachment (if one is provided).\n\n## Further reading\n\n- [Desktop automation](https://robocorp.com/docs/development-guide/desktop)\n- [Desktop robots in the Portal](https://robocorp.com/portal/collection/desktop-automation)\n- [`RPA.Windows` library](https://robocorp.com/docs/libraries/rpa-framework/rpa-windows)\n- [`RPA.Desktop` library](https://robocorp.com/docs/libraries/rpa-framework/rpa-desktop)\n- [`RPA.FileSystem` library](https://robocorp.com/docs/libraries/rpa-framework/rpa-filesystem)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fexample-windows-outlook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobocorp%2Fexample-windows-outlook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocorp%2Fexample-windows-outlook/lists"}