<div dir="ltr">Hi All,<br><br>Unfortunately I can't send email from within freeswitch.<br>I have wrote some LUA script that should send emails.<br>The relevant part of the script:<br>-----------------<br>freeswitch.email("<a href="mailto:user@domain.com">user@domain.com</a>", "<a href="mailto:user@domain.com">user@domain.com</a>", "subject: Test subject.\n", "Test body.")<br>
-----------------<br><br>
When script runs, it logs the following to console:<br>-----------------<br>2011-02-26 23:44:23.624644 [DEBUG] switch_utils.c:709 Emailed data to [<a href="mailto:user@domain.com">user@domain.com</a>]<br>-----------------<br>
<br>In my switch.conf.xml I have the following mailer-app config:<br>-----------------<br>
<param name="mailer-app" value="sendmail"/><br> <param name="mailer-app-args" value="-t"/><br>-----------------<br>
<br>I also have tried to use full path to sendmail app:<br>-----------------<br>
<param name="mailer-app" value="/usr/sbin/sendmail"/><br>-----------------<br>
<br>I'm using:<br>CentOS release 5.5 (Final)<br>FreeSWITCH Version 1.0.head (git-cb6f1ed 2011-02-22 20-25-16 -0500)<br>postfix-2.3.3-2.1.el5_2 (as MTA)<br><br>The problem is, that no mail is received and nothing logged in /var/log/maillog.<br>
However I can successfully send emails from shell (from within freeswitch's user) with sendmail -t command.<br><br>I have also wrote simple bash script that add some text to /tmp/12.txt on run and pointed mailer-app (in switch.conf.xml) to this script full patch file - nothing was added to the file.<br>
<br>Any Ideas?<br><br>Thanks,<br>Dmitry.<br></div>