Sending Outlook Email via VBScript - Scheduler Issue
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
All,
I am having an issue sending email via Outlook through a script executed in Alteryx. If I manually run my workflow, Outlook is successfully communicated with; a new email window opens, the relevant data is populated, and the email is sent.
However, when I Schedule the same workflow, it encounters an error. All other tasks are completed, except for the email (which is at the end of the flow). I tried doing this through wscript/cscript with the Run Command tool. I’ve also tried wscript/cscript via Events > Run at End. Is this an issue other users have encountered before? My IT department won’t provide the SMTP, so running via script seems to be the only option.
I have set Run As to my employee ID and password, but my thinking is my "ID" for Outlook is really the email address, and not the employee ID. Therefore, when the Scheduler goes out and runs, it does not know to search my desktop and run Outlook with the account already open.
Is this an issue other users have encountered before? My IT department won’t provide the SMTP, so running via script seems to be the only option.
Thanks!
- Labels:
- Run Command
- Scheduler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @JBarry2017
Is it possible to share your workflow and script that runs to send the email? I can try to do some testing on my end
Cheers,
Mike
