Jump to content
Sign in to follow this  
Balmukundam

Email notification

Recommended Posts

Balmukundam

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
Balmukundam

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
AutoBert

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
water

Which mail client do you run?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
Balmukundam

@Water ! SMTP ...

Share this post


Link to post
Share on other sites
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
Balmukundam

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
water

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
Balmukundam

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
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
Balmukundam

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
Balmukundam

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
JLogan3o13

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
JLogan3o13

And stick to one post!


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

Share this post


Link to post
Share on other sites
Balmukundam

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  

×