<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 6, 2018 at 10:57 AM, Tech Support <span dir="ltr"><<a href="mailto:asterisk@voipbusiness.us" target="_blank">asterisk@voipbusiness.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div class="m_6433894451589741894WordSection1"><p class="MsoNormal">All;<u></u><u></u></p><p class="MsoNormal" style="text-align:justify">    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?<u></u><u></u></p></div></div></blockquote><div><br></div><div>From the source there are no arguments, the email body is sent to the command from stdin.</div><div>( mailcmd < temp-email-body-file ; rm -f temp-email-body-file ) &<br></div><div><br></div><div>Richard</div><br></div></div></div>