Jump to content
Sign in to follow this  

Incoming Email with POP3

Recommended Posts


Ok well I got the pop3 connections working!! Yay finally (not with gmail though) anyways I need help getting the first incoming email. Heres what I got so far:

#include <array.au3>
#include <pop3.au3>

Global $MyPopServer = "mail.***.com"
Global $MyLogin = "****"
Global $MyPasswd = "***"

_pop3Connect($MyPopServer, $MyLogin, $MyPasswd)
If @error Then
MsgBox(0, "Error", "Unable to connect to " & $MyPopServer & @CR & @error)
ConsoleWrite("Connected to server pop3 " & $MyPopServer & @CR)
Local $uidlP = _NumberOfMessages()
While 1
Local $uidl = _NumberOfMessages()
If $uidlP <> $uidl Then
MsgBox(0, "test", "New message")
Func _NumberOfMessages()
Local $Messages = _Pop3Uidl()
If Not @Error Then
$Return = UBound($Messages) -1
Return $Return

The other pop3 functions can be found here:


I would really appreciate help, alot.

Share this post

Link to post
Share on other sites

Can anyone figure this out, please?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.