I've already taken the steps you described...issue i ran into was there is no variables passed to "mailcmd" only STDIN... as a result i have to "extract" variables from STDIN... <br><br><div class="gmail_quote">
On Fri, Apr 8, 2011 at 5:09 PM, Warren Selby <span dir="ltr"><<a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im">On Fri, Apr 8, 2011 at 1:18 PM, vip killa <span dir="ltr"><<a href="mailto:vipkilla@gmail.com" target="_blank">vipkilla@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div class="gmail_quote"><div>That does not sound easy... besides these email addresses would be taken from a MySQL database.</div><div><div> </div><br clear="all"></div></div></blockquote></div><div><br>It's actually what you're going to end up doing, whether you do it on the MTA level or your code it into your script that you execute instead of sendmail -f. Currently, there is no way to natively have asterisk send one voicemail to multiple email addresses.<br>
<br>What's probably going to work best for you since you seem to like program your own scripts (and I'm not talking an AGI here, I'm talking either pure bash, php, perl, or whichever you prefer), is to change the mailcmd= option inside voicemail.conf and replace it with a script of your own design. I'm not sure off the top of my head which variables are passed to the command, but you could always write a simple script that just outputs all arguments to see and go from there. My guess is you're going to at the least get the preconfigured email address and the contents of your emailsubject and emailbody options (both of which have the option of passing multiple useful variables). <br>
</div></div><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>