Sign in to follow this  
Followers 0
MagickCrafter

Is it possible to make a script to check your email?

10 posts in this topic

Is it possible to make a script to check if you have recieved a new email and displaying a msgbox or tooltip or whatever if you have recieved a new one?

If so, how would I do this? What would I do just check if a file has been recieved on the email server? If that is how, then what command could I use to do that?

Thanks guys! I am just looking for a couple of commands I'll do the script myself, just wondering how I could do something like this =) You are a great help, I love this forum,

MagickCrafter

Share this post


Link to post
Share on other sites



I'm sure its possible, but what do you use to check you mail?

Outlook

Thunderbird

MSN

AOL

What?

Share this post


Link to post
Share on other sites

Look at IE.au3, that will give you all the functionality u need to check ur email in IE.

Or if u want it real simple you could use sleep and send commands but id look at IE.au3.


_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Share this post


Link to post
Share on other sites

As for the first post, I use outlook, sry bout not specifying.

As for the second, I'm looking into IE.au3 now ty, but I kinda wanted to make my own script.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

if you have pop3 supported you could use the TCP* functions...

if its web based it will be a little harder :D (do a google on 'Fiddler' its a proxy that shows you a raw http log and everything you need...)

edit:

didnt see your last post...

if you want to do it in the background only you have to find a way with the TCP* func's or wrap a tool like 'curl'...

Edited by piccaso

CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

if you have pop3 supported you could use the TCP* functions...

if its web based it will be a little harder :D (do a google on 'Fiddler' its a proxy that shows you a raw http log and everything you need...)

Its pop3 supported, I don't have one of those whacky free emails :D Looking into it now, thank you =)

Share this post


Link to post
Share on other sites

That TCP stuff seems to be what I'm after, but holy crap is the helpfile articles for it confusing :D I live off of examples, could somebody kindly put a small example or explain a tcp function I would use? Thanks guys!

Share this post


Link to post
Share on other sites

That TCP stuff seems to be what I'm after, but holy crap is the helpfile articles for it confusing :) I live off of examples, could somebody kindly put a small example or explain a tcp function I would use? Thanks guys!

Did you ever get this to work? I am looking to do the same thing. I need to read imcoming messages and look for a term used, if used I need the program to excute a script i built for going into to oracle and assigning a ticket.

Share this post


Link to post
Share on other sites

Here's an old thread where this was discussed. I don't think there's anything there that actually works, but you might get some ideas.

Share this post


Link to post
Share on other sites

And here's a piece of code that actually works! It's pretty dirty though...

TCPStartUp()

ConsoleWrite('Connecting...' & @LF)
$socket = TCPConnect(TCPNameToIP('mail.therks.com'), 110)

ConsoleWrite('Connected...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'user autoit@therks.com' & @CRLF)
ConsoleWrite('Send user...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'pass jonbennett' & @CRLF)
ConsoleWrite('Send pass...' & @LF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

TCPSend($socket, 'list' & @CRLF)
$wait = WaitRecv($socket, '+OK')
If @error Then Exit MsgBox(16, 'Error', $wait)

MsgBox(64, '', $wait)

TCPShutdown()

Func WaitRecv($socket, $string, $size = 255)
    Local $recv, $recvStr, $instring
    Do
        $recv = TCPRecv($socket, $size, 1)
    Until $recv <> '' or @error

    If @error Then Return SetError(2, @error, False)

    $recvStr = BinaryToString($recv)
    $instring = StringInStr($recvStr, $string)
    If $instring Then
        Return SetError(0, 0, $recvStr)
    Else
        Return SetError(1, 0, $recvStr)
    EndIf
EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0