sendmail new mail notification to external address only with the first unread email
- by elcodedocle
I'm running a webserver with a contact form which triggers a php script to sendmail the message to a local account on the server, and I want to be notified on my regular email account when I got new messages.
I could have a notification per email or just send the emails directly to my account but that'd be too much: I just want a "you have new mail" notification sent to my email every time the inbox turns from 0 unread messages to 1.
Google is burying me in sendmail documentation, and still can't find anything about it.
Any ideas?