Absolutely you can fax from outside your pbx, if you use email. then postfix or any MTA will 'encapsulate" the whole shebang, it's how it works ;-)
In bash , perhaps what you mean by 'command line', you escape with \ so to include a " in a quoted by " string you use use
echo " this is a string with \"quotes\" "
conversely
echo ' this is a string with \' single quotes\' '
or even
echo "\"'double'\" 'single' $(ls -l) "
but bash ( your command line hypothetically) will NOT expand system variables or other artifacts like globs inside single quotes, it WILL within double quotes, php has plenty of functions, like addslashes as you have found, BUT if your ultimate need is to pass a string to sendfax, I suggest you just use simple bash conventional "quoting", perhaps that should be 'quoting' ;-)
Also ripmime will easily handle your non ascii characters and any "bizarre" quoting you might find. if you look at the generated txt file by ripmime you will be convinced.
In bash , perhaps what you mean by 'command line', you escape with \ so to include a " in a quoted by " string you use use
echo " this is a string with \"quotes\" "
conversely
echo ' this is a string with \' single quotes\' '
or even
echo "\"'double'\" 'single' $(ls -l) "
but bash ( your command line hypothetically) will NOT expand system variables or other artifacts like globs inside single quotes, it WILL within double quotes, php has plenty of functions, like addslashes as you have found, BUT if your ultimate need is to pass a string to sendfax, I suggest you just use simple bash conventional "quoting", perhaps that should be 'quoting' ;-)
Also ripmime will easily handle your non ascii characters and any "bizarre" quoting you might find. if you look at the generated txt file by ripmime you will be convinced.
Last edited: