Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Email Notification Script

HTVi
TV Discussion Newsgroups

Email Notification Script
<JoJo> 6/24/2007 12:08:39 PM
Folks:


I am looking for a script that would ALARM (make a distinct audio noise like
the ringing of a telephone) either when new emails arrive from a certain
source or maybe when new emails are found in a specific filtered folder. As
a backup, it would be good if the script can also send out popup screens in
addition to the audio. I am using Microsoft Outlook Express as my email
platform.

I am not sure if this type of script is fully or partially available or if
it will have to be developed from scatch.


Thanks in advance,
Jo



Re: Email Notification Script
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 6/24/2007 3:59:00 PM

<JoJo> wrote in message news:%23sI47gltHHA.2188[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> Folks:
>
>
> I am looking for a script that would ALARM (make a distinct audio noise
> like
> the ringing of a telephone) either when new emails arrive from a certain
> source or maybe when new emails are found in a specific filtered folder.
> As
> a backup, it would be good if the script can also send out popup screens
> in
> addition to the audio. I am using Microsoft Outlook Express as my email
> platform.
>
> I am not sure if this type of script is fully or partially available or if
> it will have to be developed from scatch.
>
>
> Thanks in advance,
> Jo

IMHO, Outlook Express does not expose a scriptable interface. You might be
better off upgrading to Outlook, which has facilities such as you describe
available just by enabling them.

/Al


RE: Email Notification Script
dreeschkind 6/24/2007 5:10:00 PM
Playing sounds and showing popups using Powershell is not that difficult:

http://www.microsoft.com/technet/scriptcenter/csc/tips/ps/wmp.mspx
http://mow001.blogspot.com/2005/10/msh-directory-watcher-with-popup.html

However, scripting Outlook Express is not that simple because AFAIK only
Outlook exposes itself via COM objects.

--
greetings
dreeschkind

"JoJo" wrote:

[Quoted Text]
> Folks:
>
>
> I am looking for a script that would ALARM (make a distinct audio noise like
> the ringing of a telephone) either when new emails arrive from a certain
> source or maybe when new emails are found in a specific filtered folder. As
> a backup, it would be good if the script can also send out popup screens in
> addition to the audio. I am using Microsoft Outlook Express as my email
> platform.
>
> I am not sure if this type of script is fully or partially available or if
> it will have to be developed from scatch.
>
>
> Thanks in advance,
> Jo
>
>
>
>
Re: Email Notification Script
noone[ at ]no.void (Reventlov) 6/24/2007 9:31:14 PM
Il giorno Sun, 24 Jun 2007 10:10:00 -0700, =?Utf-8?B?ZHJlZXNjaGtpbmQ=?=
<dreeschkind[ at ]discussions.microsoft.com> ha scritto:
[Quoted Text]
>However, scripting Outlook Express is not that simple because AFAIK only
>Outlook exposes itself via COM objects.
It's true. OE doesn't have a com object.

This can be used to automatically send a message with OE

"Zhang Weiwu (family name first)"

Dim sTo, sSubj, sMsg, sleepdelay
set oShell = CreateObject("WScript.Shell")
Set fs = CreateObject("Scripting.FileSystemObject")
Set txt = fs.OpenTextFile("message.txt")
'' message.txt in the same vbs folder
sTo = "someone[ at ]somwehere.org"
sSubj =now()
sMsg =txt.ReadAll()
sSubj= escape(sSubj)
'sMsg= escape(vbNull & sMsg)
oShell.Run "mailto:" & sTo & "?subject=" & sSubj & "&body=" & sMsg
wscript.sleep 2000
'oShell.SendKeys "^~"
''' remove ' above for immediate sending


--
Giovanni Cenati (Aosta, Italy)
Write to user "Reventlov" and domain at katamail com
http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
--
Re: Email Notification Script
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 6/24/2007 10:05:12 PM

"Reventlov" <noone[ at ]no.void> wrote in message
news:467ee4c3.2518531[ at ]powernews.libero.it...
[Quoted Text]
> Il giorno Sun, 24 Jun 2007 10:10:00 -0700, =?Utf-8?B?ZHJlZXNjaGtpbmQ=?=
> <dreeschkind[ at ]discussions.microsoft.com> ha scritto:
>>However, scripting Outlook Express is not that simple because AFAIK only
>>Outlook exposes itself via COM objects.
> It's true. OE doesn't have a com object.
>
> This can be used to automatically send a message with OE

Sure, but the OP asked for a script that would not send him a message, but
popup a dialog or sound an alarm when it detected that new messages were
waiting. Do you have a script that can do that?

/Al

> "Zhang Weiwu (family name first)"
>
> Dim sTo, sSubj, sMsg, sleepdelay
> set oShell = CreateObject("WScript.Shell")
> Set fs = CreateObject("Scripting.FileSystemObject")
> Set txt = fs.OpenTextFile("message.txt")
> '' message.txt in the same vbs folder
> sTo = "someone[ at ]somwehere.org"
> sSubj =now()
> sMsg =txt.ReadAll()
> sSubj= escape(sSubj)
> 'sMsg= escape(vbNull & sMsg)
> oShell.Run "mailto:" & sTo & "?subject=" & sSubj & "&body=" & sMsg
> wscript.sleep 2000
> 'oShell.SendKeys "^~"
> ''' remove ' above for immediate sending
>
>
> --
> Giovanni Cenati (Aosta, Italy)
> Write to user "Reventlov" and domain at katamail com
> http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
> --


Re: Email Notification Script
"S Moran" <s[ at ]moran.com> 6/25/2007 2:07:00 PM
powershell? but he posted to a VBSCRIPT group. whats wrong with people?!?



"dreeschkind" <dreeschkind[ at ]discussions.microsoft.com> wrote in message
news:BE47B90D-AC76-4921-BDA5-96250312E1DA[ at ]microsoft.com...
[Quoted Text]
> Playing sounds and showing popups using Powershell is not that difficult:
>
> http://www.microsoft.com/technet/scriptcenter/csc/tips/ps/wmp.mspx
> http://mow001.blogspot.com/2005/10/msh-directory-watcher-with-popup.html
>
> However, scripting Outlook Express is not that simple because AFAIK only
> Outlook exposes itself via COM objects.
>
> --
> greetings
> dreeschkind
>
> "JoJo" wrote:
>
>> Folks:
>>
>>
>> I am looking for a script that would ALARM (make a distinct audio noise
>> like
>> the ringing of a telephone) either when new emails arrive from a certain
>> source or maybe when new emails are found in a specific filtered folder.
>> As
>> a backup, it would be good if the script can also send out popup screens
>> in
>> addition to the audio. I am using Microsoft Outlook Express as my email
>> platform.
>>
>> I am not sure if this type of script is fully or partially available or
>> if
>> it will have to be developed from scatch.
>>
>>
>> Thanks in advance,
>> Jo
>>
>>
>>
>>

Re: Email Notification Script
"Michael Harris \(MVP\)" <mikhar.at.mvps.dot.org> 6/25/2007 3:55:48 PM
S Moran wrote:
[Quoted Text]
> powershell? but he posted to a VBSCRIPT group. whats wrong with
> people?!?

Nothing wrong with the OP given that he crossposted to several relatively
appropritae scripting related groups, including m.p.windows.powershell
;-)...

--
Michael Harris
MVP- Admin Frameworks


Re: Email Notification Script
Lance <lmrobins[ at ]gmail.com> 6/25/2007 6:43:32 PM
You can connect directly to the IMAP/POP server from PowerShell rather
than trying to connect to OE. NetCmdlets include get-pop and get-imap
cmdlets that can return collections of messages on mail servers. You
can use that to determine whether or not you have emails waiting that
match whatever filter you're looking for. Someone has already replied
here about creating sounds and showing popups.

Here is where you can find NetCmdlets: http://www.nsoftware.com/powershell/.

Lance
http://geekswithblogs.net/lance


Email Notification Functionality
<JoJo> 6/26/2007 8:26:57 AM
Al Dunbar:


I am tempted to go with your suggestion of upgrading to Outlook.
* Would that require that I also install Exchange Server or just Office
2003 ?
I have Office 2003. I believe that should contain something better than my
present Outlook Express 2000.



Thanks,
John.

"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> wrote in message
news:uOVFCErtHHA.4424[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
>
> <JoJo> wrote in message news:%23sI47gltHHA.2188[ at ]TK2MSFTNGP03.phx.gbl...
> > Folks:
> >
> >
> > I am looking for a script that would ALARM (make a distinct audio noise
> > like
> > the ringing of a telephone) either when new emails arrive from a certain
> > source or maybe when new emails are found in a specific filtered folder.
> > As
> > a backup, it would be good if the script can also send out popup screens
> > in
> > addition to the audio. I am using Microsoft Outlook Express as my email
> > platform.
> >
> > I am not sure if this type of script is fully or partially available or
if
> > it will have to be developed from scatch.
> >
> >
> > Thanks in advance,
> > Jo
>
> IMHO, Outlook Express does not expose a scriptable interface. You might be
> better off upgrading to Outlook, which has facilities such as you describe
> available just by enabling them.
>
> /Al
>
>


Re: Email Notification Functionality
Marco Shaw <marco.shaw[ at ]_NO_SPAM_gmail.com> 6/26/2007 12:45:30 PM
JoJo wrote:
[Quoted Text]
> Al Dunbar:
>
>
> I am tempted to go with your suggestion of upgrading to Outlook.
> * Would that require that I also install Exchange Server or just Office
> 2003 ?
> I have Office 2003. I believe that should contain something better than my
> present Outlook Express 2000.

From what I can tell, all versions of Office 2003 include Outlook, so
you should have access to it or might need to install it.

You should be able to configure Outlook to get your "internet mail" like
Express does (Exchange not required).

From there, you will have access via COM to your Outlook messages. Then
you'll need to decide which programming/scripting language you want to
use (and also pick which newsgroup you want to keep the discussion going
in, instead of all of these you have now).

Marco
Re: Email Notification Script
noone[ at ]no.void (Reventlov) 6/26/2007 9:17:40 PM
Il giorno Sun, 24 Jun 2007 16:05:12 -0600, "Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> ha
scritto:
[Quoted Text]
>Sure, but the OP asked for a script that would not send him a message, but
>popup a dialog or sound an alarm when it detected that new messages were
>waiting.

Sorry, I answered quickly while I was connected and I didn't read the question well.


>Do you have a script that can do that?

Maybe checking the size of the dbx files. If it grows, an e-mail arrived. Don't know if it
works or if the file is updated only when OE is closed.

--
Giovanni Cenati (Aosta, Italy)
Write to user "Reventlov" and domain at katamail com
http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
--
Re: Email Notification Functionality
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 6/27/2007 5:58:27 AM

"Marco Shaw" <marco.shaw[ at ]_NO_SPAM_gmail.com> wrote in message
news:eYGVi$%23tHHA.5036[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
> JoJo wrote:
>> Al Dunbar:
>>
>>
>> I am tempted to go with your suggestion of upgrading to Outlook.
>> * Would that require that I also install Exchange Server or just
>> Office
>> 2003 ?
>> I have Office 2003. I believe that should contain something better than
>> my
>> present Outlook Express 2000.
>
> From what I can tell, all versions of Office 2003 include Outlook, so you
> should have access to it or might need to install it.
>
> You should be able to configure Outlook to get your "internet mail" like
> Express does (Exchange not required).
>
> From there, you will have access via COM to your Outlook messages. Then
> you'll need to decide which programming/scripting language you want to use
> (and also pick which newsgroup you want to keep the discussion going in,
> instead of all of these you have now).

But... Outlook can be configured (without having to script it) to popup a
window when email arrives, make a sound, or put an envelope icon in the
system tray. Why make it harder than it needs to be?

/Al


Re: Email Notification Script
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 6/27/2007 5:59:43 AM

"Reventlov" <noone[ at ]no.void> wrote in message
news:4681844a.893325[ at ]powernews.libero.it...
[Quoted Text]
> Il giorno Sun, 24 Jun 2007 16:05:12 -0600, "Al Dunbar"
> <AlanDrub[ at ]hotmail.com.nospaam> ha
> scritto:
>>Sure, but the OP asked for a script that would not send him a message, but
>>popup a dialog or sound an alarm when it detected that new messages were
>>waiting.
>
> Sorry, I answered quickly while I was connected and I didn't read the
> question well.
>
>
>>Do you have a script that can do that?
>
> Maybe checking the size of the dbx files. If it grows, an e-mail arrived.
> Don't know if it
> works or if the file is updated only when OE is closed.

I don't know either, however, there are more things capable of increasing
the size of the dbx file than incoming messages.

/Al


Re: Email Notification Functionality
Marco Shaw <marco.shaw[ at ]_NO_SPAM_gmail.com> 6/27/2007 1:26:22 PM
[Quoted Text]
> But... Outlook can be configured (without having to script it) to popup a
> window when email arrives, make a sound, or put an envelope icon in the
> system tray. Why make it harder than it needs to be?

Right you are...

Marco

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen