![]() # echo Message was passed successfully: $?īy default message delivery is asynchronous, and mailx will exit as soon as the prepared message has been passed over to the delivery mechanism, stating only whether message preparation was successful (or not). ![]() In particular, see mailx(1) § On sending mail, and non-interactive mode: You can adjust the program which is used as a MTA by setting the variable mta (fine-tuning via mta-arguments, mta-no-default-arguments, mta-argv0). Using the -d/ -debug flag results in a sandbox dry-run. # echo 'Message body' | mailx -debug -subject='A subject' -attach=an_attachment.txt 'Foo2 ' 4 Sending mail with an external SMTP serverīecause the systemwide configuration file ( /etc/mail.rc) brings in some useful standards, sending mail over an installed local mail-transfer-agent (MTA), such as sendmail or postfix, can be as easy as follows:.
0 Comments
Leave a Reply. |