Author |
|
jeremy450 Newbie

Joined: 25 June 2012 Location: Australia
Online Status: Offline Posts: 16
|
Posted: 25 June 2012 at 8:18am | IP Logged
|
|
|
Hi there.
I got Webmail Pro 6.2 in php
I want to know how i can add a sounds alert when a new message comes in.
i know theres a tab/taskbar alert. but want o add sounds.
how can i do this.
regards
Jeremy
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 26 June 2012 at 12:47am | IP Logged
|
|
|
There's no easy way to achieve that, particularly since WebMail Pro doesn't actually notify of new messages, it contains indication of unread messages which isn't necessarily the same thing. You could modify the checkmail procedure and compare unread count with its previous value, and based on that, generate an alert if the count is increased.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
jeremy450 Newbie

Joined: 25 June 2012 Location: Australia
Online Status: Offline Posts: 16
|
Posted: 26 June 2012 at 11:12pm | IP Logged
|
|
|
How can i add sound though to the new message alert?
its fine if it keeps playing around every time it checks emails and the same email is still unread. thats fine.
just want to add sound to it so every time ti checks. if theres 1 or 10 messages it will just play sound for ever long it takes the person to acturely read it.
regards
Jeremy
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 27 June 2012 at 12:05am | IP Logged
|
|
|
You can use EMBED tag of HTML added dynamically to the page, and since the sound should be triggered at the same time when favicon is changed to its blinking version, it makes sense to place that code alongside. See js/common/common-helpers.js file, lines 551-612, Favicon object.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|