![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Windows 7 and 2008 | Trigger Script after email received Hello All, this is my first post and I'm glad to learn here in the forum..! I have a question I'm trying to automate some process and one thing that I can't is to Trigger a Script after an email is received in to an especific email account... (Like execute the screen saver or an alert on the desktop for example) I don't know if it's something that can be done directly with powershell and exchange or powershell and outlook... any ideas? will be really appreciated Thanks for Your Help..!! =) JessE |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Trigger Script after email received Hi there, have a look here: Can Powershell parse email? You can use this to automate Outlook. If you want more professional solution, I would recommend to have a look at NewMail event (eventually NewMailEx) Martin "elJessE" <guest@newsgroup-email.com> wrote in message news:bafa8ffa34793c01c9bd0a7e7019e7a7@newsgroup-gateway.com... Quote: > > Hello All, this is my first post and I'm glad to learn here in the > forum..! > I have a question I'm trying to automate some process and one thing > that I can't is to Trigger a Script after an email is received in to an > especific email account... (Like execute the screen saver or an alert on > the desktop for example) > I don't know if it's something that can be done directly with > powershell and exchange or powershell and outlook... any ideas? will be > really appreciated > Thanks for Your Help..!! > =) JessE > > > -- > elJessE |
My System Specs![]() |
| | #3 (permalink) |
| Windows 7 and 2008 | Re: Trigger Script after email received Thank You so Much Martin, I will take a look to it... JessE |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Trigger Script after email received On Nov 3, 11:17*am, elJessE <gu...@newsgroup-email.com> wrote: Quote: > Thank You so Much Martin, I will take a look to it... > > JessE> > -- > elJessE arrived. <----------------- Start POSH --------------------------------------------------------------> $path = "c:\temp\email.txt" $info = New-Object -ComObject Outlook.Application $objNamespace = $info.GetNamespace("MAPI") $objFolder = $objNamespace.GetDefaultFolder(6).Folders.Item("Merchant Reporting") $colItems = $objFolder.Items foreach ($item in $colItems) { If ($item.SenderEmailAddress -eq "Bill.Smith@newsgroup") { ("$($item.SenderEmailAddress) `t $($item.SentOn) `t $ ($item.Subject)")| Add-Content $path } } < -------------- End Script ---------------------------------------------------------------------------- Quote: > Searches the In box for a sub folder and then for a sender. writes them out to the screen or a file in a tab delimited format Includes Senders name, Date/time sent and subject. Its the `t that adds the tabs. `n adds a new line. 'r adds a line feed |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| email not being received | Vista mail | |||
| Re: Received email from myself | Vista mail | |||
| Attaching an email received to an email outgoing | Vista mail | |||
| RC1 email yet to be received | Vista General | |||