Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

POSTFIX help wanted

Hi all
I am a novice Linux user. We use IBM Universe BASIC on a Linux platform.
An administrator configured POSTFIX, then I googled until I figured out how to use the thing, manually. Now I'm trying to send email from a Universe program. It almost works perfectly. Here is the source code:

DATA ""
DATA "."
EXECUTE 'SH -c "nail antons@leobs.co.za -r antons@leobs.co.za -s testing123"'

DATA will put "keyboard input" on a stack, until the system 'prompts' for it, and then it just takes it from the stack. The first DATA is just an ENTER keypress, the second is supposed to be CTRL-D, but the full stop does the same, except that is does not attach junk to the email.
Instead, the message body contains ".", which is fine kind of, but I would like it to be 100%.
It's almost like when the Linux shell runs, it does not care anymore about DATA or any other Universe command, because control is now at a different level. To be honest, I'm not even sure why the "." works.
Anyone, how can I 'feed' the CTRL-D along with the rest of the email data to the Linux level (oterwise it just hangs, waiting for it..)??
I know this is kind of a weird one, but any insights or advice would be great.
Thanks a lot

Comments

Sign In or Register to comment.