Reading Email with Windows Script Host script 
Author Message
 Reading Email with Windows Script Host script

I need to be able to read email messages into a console window and
also be able to get the subject line and other message properties into
variables.  This is READING email NOT sending!!!

Any ideas???

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.*-*-*.com/ - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script

Quote:
> Any ideas???

Just been there. I feel your pain.

See http://gographics.com/matt/scripts/ml.vbs for my sample of how to do it
using the free ZaksPOP3.DLL component. You should be able to translate VBS
to ASP pretty readily.



Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script
Hi,

You may wish to look at the JMail component. It's quite widely used and
later versions support reading as well as sending.

Quote:

> I need to be able to read email messages into a console window and
> also be able to get the subject line and other message properties into
> variables.  This is READING email NOT sending!!!

> Any ideas???

> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

--
Gerry Hickman (London UK)


Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script
Where to find latest JMail now? There's nobody home (for a while now) at
http://www.dirmac.net

Branimir


Quote:
> Hi,

> You may wish to look at the JMail component. It's quite widely used and
> later versions support reading as well as sending.





Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script
My fault! Proper address is: http://www.dimac.net/


Quote:
> Where to find latest JMail now? There's nobody home (for a while now) at
> http://www.dirmac.net

> Branimir



> > Hi,

> > You may wish to look at the JMail component. It's quite widely used and
> > later versions support reading as well as sending.





Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script

Quote:

> My fault! Proper address is: http://www.dimac.net/

Heh, you had me worried! Even my ISP uses it :)

--
Gerry Hickman (London UK)



Sat, 03 May 2003 03:00:00 GMT  
 Reading Email with Windows Script Host script
I have worked out a script that connects to outlook and reads the
contents of your inbox.  Run this script using cscript.exe and the
messages will output to the console window.

This is my first script that i have posted.  If anyone sees an easier
way...please post.  I'd love to be able to take the output and save it
as a csv file.  Thats next on my agenda.

Thanks for all the suggestions.

Dim oOutlook
Dim oNamespace
Dim objInBox, objItem
Dim email, AllEmail, NewEmail

Set oOutlook = CreateObject("Outlook.Application")
Set oNamespace = oOutlook.GetNameSpace("Mapi")
Set objInBox = oNamespace.GetDefaultFolder(6)

AllEmail = 0
NewEmail = 0

For Each objItem in objInBox.Items
AllEmail = AllEmail + 1
If objItem.UnRead Then
  NewEmail= NewEmail + 1
    email = email & "From: " & objItem.SenderName & vbCrLf
    email = email & "Subject: " & objItem.Subject & vbCrLf
    email = email & "Body: " & vbCrLf & vbCrLf & objItem.Body & vbCrLf
    email = email & "============================================" &
vbCrLf
    email = email & "============================================" &
vbCrLf & vbCrLf
End If
Next

WScript.Echo "All E-mails: " & AllEmail & vbNewLine & "New E-mails: "
& NewEmail & vbNewLine & vbNewLine & email



Quote:
>I need to be able to read email messages into a console window and
>also be able to get the subject line and other message properties into
>variables.  This is READING email NOT sending!!!

>Any ideas???

>-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
>http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
>-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Mon, 05 May 2003 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Research: Windows Script Host or Windows Scripting Host

2. Problems Installing Windows Script 5.0 and Windows Script Host 2.0 Beta on Windows NT 4.0

3. Windows Script Host to Execute Remote Script Q311269

4. Windows Script Host Shell Object (Malacious script detected)

5. Windows scripting host - Checking a service in Windows NT 4

6. Windows Scripting Host on Windows 95 OSR2

7. Windows 95 OSR1 and Windows Scripting Host

8. Windows Scripting Host for Windows 98 Book

9. Windows Scripting Host (WSH)

10. WSH: Windows Script Host news group?

11. JScript with Windows Script Host

12. JScript with Windows Script Host

 

 
Powered by phpBB® Forum Software