Wow. 1.0.4 is *really* old. It looks like the email method was not added until later. My guess is that it would be less work to get your &quot;various programs running on top of FS&quot; to work with the latest git than it would be to try to work around this issue.<div>
<br></div><div>I&#39;d say your best and fastest path to a blissful FreeSWITCH install is to get professional assistance from <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>.</div><div><br></div><div>
-MC<br><br><div class="gmail_quote">On Thu, Dec 15, 2011 at 4:57 PM, Drew Terenzini <span dir="ltr">&lt;<a href="mailto:drew_terenzini@wesleycloversolutions.com">drew_terenzini@wesleycloversolutions.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<u></u>





<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">            Good
evening, I’m attempting to use the freeswitch.email from <a href="http://wiki.freeswitch.org/wiki/Lua#freeswitch.email" target="_blank">http://wiki.freeswitch.org/wiki/Lua#freeswitch.email</a>.
 I am running FS 1.04 on Ubuntu 10.04 LTS, and for various reasons having
to do with programs running on top of FS, I cannot just upgrade FS without
breaking other things.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have installed postfix
successfully and tested sendmail from the Linux CLI without a problem. 
Emails are delivered to the appropriate external addresses.  My
switch.conf.xml has:<u></u><u></u></span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">-&gt;<u></u><u></u></span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">    &lt;param
name=&quot;mailer-app&quot; value=&quot;sendmail&quot;/&gt;<u></u><u></u></span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">    &lt;param
name=&quot;mailer-app-args&quot; value=&quot;-t&quot;/&gt;<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">            …
and I have a stripped down test script called “email.lua” in my
scripts directory as follows:<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">freeswitch.email(&quot;&lt;<a href="mailto:destination@destination.com" target="_blank">destination@destination.com</a>&gt;&quot;,&quot;&lt;<a href="mailto:source@freeswitch.source.com" target="_blank">source@freeswitch.source.com</a>&gt;&quot;,&quot;subject:
Test message from VTAPENG\n&quot;,&quot;Hello you have a test message.”)<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">            The
destination and source email addresses are valid and receiving email when sent
from other programs/sites.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">            In
the FS_CLI, I attempt to test-run the script by entering “lua email.lua”,
only to get the following error each time:<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">-ERR encounterd<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">freeswitch@vtap&gt; <u></u>2011-12-15 16<u></u>:36:<u></u>19.246622<u></u> [ERR] mod_lua.cpp:182
/opt/freeswitch/scripts/email.lua:1: attempt to call field &#39;email&#39; (a nil
value)<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">stack traceback:<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">       
/opt/freeswitch/scripts/email.lua:1: in main chunk<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">            </span></font><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">This error
appears to terminate the script, and no response is received from postfix, and
no error is logged to mail.log.  I’ve tried a number of ways to
modify the outcome, without real result.  Searching on the Wiki and the
mailing lists hasn’t resulted in anything that has worked either.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font face="Arial"><span style="font-size:10.0pt;font-family:Arial">            Is
freeswitch.email() not supported in FS 1.04?  Is there some context that I’m
missing for this to work?  Any help would be appreciated, thanks!<u></u><u></u></span></font></p>

</div>

</div>


<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>