[asterisk-users] custom voicemail e-mail

Tilghman Lesher tlesher at digium.com
Wed Sep 16 12:16:37 CDT 2009


On Wednesday 16 September 2009 11:35:31 Ron wrote:
> Hi All,
>
> I'm trying to use a php script to send voicemail e-mail so i can send
> custom e-mail message based on what mailbox.
>
> on my voicemail.conf i have
>
> mailcmd=/var/www/voicemail.php
>
> but when i tried to call an extension and goe to voicemail i'm not
> receiving the e-mail.
>
> but when i execute "php /var/www/voicemail.php" on the shell, i can
> receive the e-mail.

Make sure the first line of your script is:
#!/usr/bin/php

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list