{"id":3427,"date":"2014-10-25T00:35:58","date_gmt":"2014-10-25T00:35:58","guid":{"rendered":"http:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/sffsmtp\/"},"modified":"2014-10-25T00:35:58","modified_gmt":"2014-10-25T00:35:58","slug":"sffsmtp","status":"publish","type":"page","link":"https:\/\/www.fingerpost.co.uk\/wp\/programme-documentation\/sffsmtp\/","title":{"rendered":"sffsmtp  (Sat Oct 25 2014 01:31:01)"},"content":{"rendered":"<pre>\nsffsmtp\n\nSimple program to read a file or a stream of data and send it to an SMTP\nserver.\n\n\tcat infile | sffsmtp -s smtphostname -t toaddress\n\tsffsmtp -s smtphost -t toaddress -i infile\n\n\tsffsmtp -t root -s fp2 -i testfile\n\nInput switches :\nMandatories\n\t-t : TO: mail name\t\t\tdefault: none\n\t\t-t abc@fippo.co.uk\n\t-s : name of host running SMTP\t\tdefault: this host\nOptionals\n\t-1 : file to send\t\t\tdefault: none\n\t-b : text to send before the data\tdefault: none\n\t-B : file to send before the data\tdefault: none\n\t-a : text to send after  the data\tdefault: none\n\t-A : file to send after  the data\tdefault: none\n\t-f : From: your reply address\t\tdefault: fip\n\t-h : Extra Fip Header information\tdefault: none\n\t\t-h &quot;#DU:mailsort#SC:ascii#SN:$e$y$i$d$z&quot;\n\t-p : port number (if NOT port 25)\tdefault: 25 for SMTP\n\t-l : do NOT log\t\t\t\tdefault: log\n\t-w : find the logon from the w4 FipId\tdefault: fip\n\t-W : wrap line\t\t\t\tdefault: 76\n\t\t-W0 for no wrap\n\t-v : version and exit\n\nFor those switches with parameters, the parameter MUST be separated by a space.\n\n\nNote that if defining escape chrs in scripts, you will probably need to escape\nthe escapes ! eg : n becomes \\n\n\nOther env varis can be used to define where the system is :\n\tSFF_HOME\twhere the home or top queue is.\t\tdefault: \/fip\n\t\t\teg\tsetenv\tSFF_HOME\t\/ripexpress\/underware\n\tSFF_LOG\t\twhere the log files queue is\t\tdefault: (SFF_HOME)\/log\n\tSFF_SPOOL\twhere the data queues are\t\tdefault: (SFF_HOME)\/spool\n\tSFF_TMP\t\twhere the tmp data queues is\t\tdefault: (SFF_HOME)\/x\n\t\t\tTHIS MUST BE ON THE SAME UNIX VOLUME as SFF_SPOOL queues.\n\t\t\tie if spools are on \/data99 which is hard disk \/dev\/sd0, you MUST also\n\t\t\thave the TMP queue on the same disk\/partition\n\nNOTE that for all BUT SFF_HOME, if the parameter starts with a '\/' then it is a\nhard, absolute path; if not then the spool area is under SFF_HOME.\n\teg\tsetenv\tSFF_SPOOL\t\/data7\t\twill look under \/data7 for queues\n\twhile\tsetenv\tSFF_SPOOL\tdata7\t\twill look under \/fip\/data7\n\nVersion Control\n;000c\t11may99 chj original version\n\n\n(copyright) 2014 and previous years FingerPost Ltd.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sffsmtp Simple program to read a file or a stream of data and send it to an SMTP server. cat infile | sffsmtp -s smtphostname -t toaddress sffsmtp -s smtphost -t toaddress -i infile sffsmtp -t root -s fp2 -i testfile Input switches : Mandatories -t : TO: mail name default: none -t abc@fippo.co.uk -s [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":495,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"page-templates\/full-width.php","meta":[],"_links":{"self":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3427"}],"collection":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/comments?post=3427"}],"version-history":[{"count":0,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/3427\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/pages\/495"}],"wp:attachment":[{"href":"https:\/\/www.fingerpost.co.uk\/wp\/wp-json\/wp\/v2\/media?parent=3427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}