Tech Support
2018-Jul-06 15:57 UTC
[asterisk-users] Passing arguments to the 'mailcmd' option in voicemail.conf
All; 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? Thanks in Advance; John V. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180706/ae7e0572/attachment.html>
Richard Mudgett
2018-Jul-06 16:24 UTC
[asterisk-users] Passing arguments to the 'mailcmd' option in voicemail.conf
On Fri, Jul 6, 2018 at 10:57 AM, Tech Support <asterisk at voipbusiness.us> wrote:> All; > > 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 thecommand from stdin. ( mailcmd < temp-email-body-file ; rm -f temp-email-body-file ) & Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180706/a00ea9a8/attachment.html>