[asterisk-users] Passing arguments to the 'mailcmd' option in voicemail.conf
rmudgett at digium.com
Fri Jul 6 11:24:30 CDT 2018
On Fri, Jul 6, 2018 at 10:57 AM, Tech Support <asterisk at voipbusiness.us>
> I’d like to change the default command that is used to send email when
> a person has a new voicemail. I believe that’s set in voicemail.conf as the
> ‘mailcmd’ option. The default is to use the /usr/sbin/sendmail –t command.
> I wrote a quick test script to see what arguments are passed to the command
> (@ARGV), but no arguments were sent. So my question is this, how are
> arguments sent to the ‘mailcmd’ command?
>From the source there are no arguments, the email body is sent to the
command from stdin.
( mailcmd < temp-email-body-file ; rm -f temp-email-body-file ) &
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users