Sign in to follow this  
Followers 0
Balmukundam

Email notification

15 posts in this topic

Hello all,

 I'm Enjoying working in AutoIt ! Recently I get Done with one Assignment and moving towards to make another ! I'm Really Thankful to the team members of the AutoIT for there good suggestions time to time .

Now I'm Just Start doing working in another Assignment and that is to  " get notification Pop Up " when I get somebody mail in my inbox  ! Please let me suggest something so I can Start with this . 

Thanks ,

Balmukundam 

 

Share this post


Link to post
Share on other sites



As I went through with this code , 

It's showing one error that is Error getting Url Source ..

Example.txt

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

You should use a pop3 udf for this, so test: https://www.autoitscript.com/wiki/User_Defined_Functions#Automation:

Quote

POP3 (by Apzo) - POP3 library for retrieving email messages. Not compatible with Gmail because it uses SSL.
POP3 (by mLipok) - POP3 UDF According to the 1939 RFC, modified version with Quoted Printable decoder.
POP3 SSL (by Fox2) - A POP3 library that's compatible with Gmail. It uses an external executable that must be supplied with your script.

 

Edited by AutoBert

Share this post


Link to post
Share on other sites

Which mail client do you run?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

@Water ! SMTP ...

Share this post


Link to post
Share on other sites

IIRC this issue has been discussed a few times on the forum.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Yes you're right I had looked up that discussion ! and got some solution ! Look in below-attached code I get one error in this function . can you please just have a look and let me know where i am wrong ...

Thanks 

 

Func StringBetween($Str, $S, $E)
    MsgBox (0,"Krishna","Hii")
    Local $B = _StringBetween($Str, $S, $E)
    If @error Then Return SetError(1,0,0)
    Return SetError(0,0,$B[0])
 EndFunc   ;==>StringBetween
 

aaaa

Share this post


Link to post
Share on other sites

That simply means that delimiters $S and $E could not be found in $Str.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hii,


@water  I had seen this code in depth and found the error ! but still I am having one confusion like i want this code to be display pop up when new mail comes in inbox 

But not getting exact idea how it would be possible ! can you please suggest me something .

Note :- one more thing ! StringBetween function not working in this code don't know why ?

Thanks 

MailNotification(Main)

Share this post


Link to post
Share on other sites

I've never automated GMail.
In Outlook an event is raised when a new mail arrives. Don't know how this works with POP3.
Hopefully some more experienced users chime in :)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hello all,

Guys Do you all  have any idea how makes this to work ! as i tried a lot but can't let this happen Please help me out this problem .

thanks in advance 

Share this post


Link to post
Share on other sites

Hi ,

I am writing code for Displaying POP message when i get new mail in my box ! in coding in for loop i am getting one error "$Email[$i]" Saying Subscript used on non-accessible variable .

Please just have a look on attached file 

Thanks

 

MailNotification(Main) (2).au3

Share this post


Link to post
Share on other sites

Your for loop states $i = 0 to $EmailCount - 1. Your script is telling you that $Email[$i] does not exist. So what have you done to troubleshoot this? You know the loop where the error is generated, put in some error checking to catch it.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

And stick to one post!


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Finally I get this Done ! Thanks to you all ...

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