Mandler
01-05-2008, 10:44 PM
I want to use a mail processor script as a way to notify someone (via a different email address of theirs) that they have email waiting. Is this possible?
I pasted together a PERL script (using a couple of examples from Sheila) attached to the end of this message, placed it my big/dom/xdomain directory, set permissions to 0755, and used CNC to specify a processor that pointed to the file's path.
When I send email to the account, the email is properly received but the intended notification isn't generated. There are no errors in the logs.
Thanks... alan
- - -
#!/usr/bin/perl
while (<STDIN>) { print; }
open (SENDMAIL, "|/usr/lib/sendmail -oi -t -odq") or die "Can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: "Mail Server" <AccountName\@DomainName.com>
To: "Recipient Name" <Recipient\@gmail.com>
Subject: You have email waiting.
A message is waiting in your Polo Info email account.
EOF
close(SENDMAIL) or warn "sendmail didn't close nicely";
I pasted together a PERL script (using a couple of examples from Sheila) attached to the end of this message, placed it my big/dom/xdomain directory, set permissions to 0755, and used CNC to specify a processor that pointed to the file's path.
When I send email to the account, the email is properly received but the intended notification isn't generated. There are no errors in the logs.
Thanks... alan
- - -
#!/usr/bin/perl
while (<STDIN>) { print; }
open (SENDMAIL, "|/usr/lib/sendmail -oi -t -odq") or die "Can't fork for sendmail: $!\n";
print SENDMAIL <<"EOF";
From: "Mail Server" <AccountName\@DomainName.com>
To: "Recipient Name" <Recipient\@gmail.com>
Subject: You have email waiting.
A message is waiting in your Polo Info email account.
EOF
close(SENDMAIL) or warn "sendmail didn't close nicely";