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

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to