mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
reorder args
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15253 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9638aee919
commit
9d6bf97b09
@ -585,9 +585,9 @@ SWITCH_DECLARE(switch_bool_t) switch_simple_email(const char *to,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
switch_snprintf(buf, B64BUFFLEN, "type %s | %s %s -f %s %s", filename, runtime.mailer_app, runtime.mailer_app_args, from, to);
|
switch_snprintf(buf, B64BUFFLEN, "type %s | %s -f %s %s %s", filename, runtime.mailer_app, from, runtime.mailer_app_args, to);
|
||||||
#else
|
#else
|
||||||
switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s %s -f %s %s", filename, runtime.mailer_app, runtime.mailer_app_args, from, to);
|
switch_snprintf(buf, B64BUFFLEN, "/bin/cat %s | %s -f %s %s %s", filename, runtime.mailer_app, from, runtime.mailer_app_args, to);
|
||||||
#endif
|
#endif
|
||||||
if (switch_system(buf, SWITCH_TRUE) < 0) {
|
if (switch_system(buf, SWITCH_TRUE) < 0) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to execute command: %s\n", buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user