Hi all,
According to: http://wiki.freeswitch.org/wiki/Lua#freeswitch.email
I should successfully send emails from within FS with following script:
19:19 fs:/usr/local/freeswitch/scripts# cat test.lua
freeswitch.email("user@domain.com",
"user@domain.com",
"subject: Voicemail from 1234\n",
"Hello,\n\nYou've got a voicemail, click the attachment to listen to it.")
19:19 fs:/usr/local/freeswitch/scripts#
When I run script, I can see in console:
freeswitch@default> lua test.lua
-ERR no reply
2011-03-04 19:20:46.783430 [DEBUG] switch_utils.c:709 Emailed data to [user@domain.com]
freeswitch@default>
I have the following configured in my autoload_configs/switch.conf.xml:
<param name="mailer-app" value="sendmail"/>
<param name="mailer-app-args" value="-t"/>
However nothing passed to sendmail… it is no records in /var/log/maillog.
I run:
CentOS release 5.5 (Final)
FreeSWITCH Version 1.0.head (git-53fc3f7 2011-02-28 12-43-05 -0600)
Any ideas?