Index: switch_utils.c =================================================================== --- switch_utils.c (revision 17037) +++ switch_utils.c (working copy) @@ -617,7 +617,8 @@ #ifdef WIN32 switch_snprintf(buf, B64BUFFLEN, "type %s | %s -f %s %s %s", filename, runtime.mailer_app, from, runtime.mailer_app_args, to); #else - switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s -f %s %s %s", filename, runtime.mailer_app, from, runtime.mailer_app_args, to); + /*switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s -f %s %s %s", filename, runtime.mailer_app, from, runtime.mailer_app_args, to);*/ + switch_snprintf(buf, B64BUFFLEN, "%s %s < %s", runtime.mailer_app, runtime.mailer_app_args, filename); #endif if (switch_system(buf, SWITCH_TRUE) < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);