]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make mailer app name a config option
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 5 Nov 2007 19:13:17 +0000 (19:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 5 Nov 2007 19:13:17 +0000 (19:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6164 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_utils.c

index 816cd731dbe269c0881d5681c7c4cd44f41c23f7..339f256055eee9ec7d72230374a888c3eab7a179 100644 (file)
@@ -180,7 +180,7 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(char *to, char *from, char *he
     if (ifd) {
         close(ifd);
     }
-    snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s %s", filename, runtime.mailer_app, runtime.mailer_app_args);
+    snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s %s %s", filename, runtime.mailer_app, runtime.mailer_app_args, to);
     if(system(buf)) {
         switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);
     }