Jump to content

Email notification


Recommended Posts

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 

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

Which mail client do you run?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
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)

Link to comment
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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...