Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to send mail using tacl macro

631 views
Skip to first unread message

Nakul Pawar

unread,
Jul 12, 2017, 7:32:15 AM7/12/17
to
Hello everyone,
i need to write a macro which will send mail to particular mail address with some details extracted using fup.

i have searched tacl programming guide and tacl reference guide but couldn't find anything related to sending mail.

i have searched from previous topics in this group but there is one link i found in the answers but that link is not working.


Kindly help me with this..!!

Pallu

unread,
Jul 12, 2017, 7:54:20 AM7/12/17
to
Refer to the SENDMAILV2.4 in below page and follow the instructions by Jeff

http://webpages.charter.net/jeff.artz/personal/Tandem.html

Nakul Pawar

unread,
Jul 12, 2017, 9:14:14 AM7/12/17
to
Hi,

This is the c code,

i wants to write TACL macro to send mail,
can i get some information for the same.?

or someone please suggest some hp document, so by referring the document i can write macro .

Thanks. :-)

Keith Dick

unread,
Jul 12, 2017, 10:54:21 AM7/12/17
to
Do you realize that you can write a TACL macro or routine that runs this C program and feeds it the commands needed to send the email you want to send?

Long ago, there was an email system hosted on the NonStop system, but that disappeared quite a long time ago. To send email from a NonStop system now, you must communicate via TCP/IP sockets to an email server. That sockets interface is what the C program uses to send email. TACL does not contain the functions needed to perform TCP/IP sockets calls, so you simply cannot send email using only TACL code.

To use that C program, your TACL code need only construct the commands the C program expects, put them into a TACL variable, and run the C program using the INV option in the RUN command to provide input to the C program from your TACL variable.

If I remember that C program correctly, it uses the original SMTP interface which is unencrypted. If the email server you need to use requires that you connect via the encrypted interface, you will not be able to use a C program that can use only the unencrypted interface. I do not know of a program that runs on the NonStop system that can connect to an email server using the encrypted interface, but I believe there is no reason such a program cannot be written, so if you search enough, you probably could find one. Such a program might run only in the OSS environment, and running OSS programs from TACL code sometimes is a little tricky, depending on how the program takes its input, but it usually can be done.

wbreidbach

unread,
Jul 12, 2017, 11:41:10 AM7/12/17
to
Sendmail is a really good tool, we have been using it for a long time now. We are using it programmatically, building the input file from that program and just starting the sendmail program. It is part of our monitoring application and we never had any problems.
There is just one thing you should be aware off: If you have more than 1 recipient, you have to use a "TO:"-statement for each of the recipients.

Bill Honaker

unread,
Jul 12, 2017, 11:48:06 AM7/12/17
to
Keith, in addition to that Guardian-based sendmail, there are 2 OSS packages in the ITUGLIB that work. One is sendmail and it works similarly. The other is curl.

The command line curl program supports encrypted SMTP connections in its latest version (7.46.1), and it relies on the latest OpenSSL version (1.0.2g) to do the encryption.

Running OSS programs from TACL is an option, while not quite as straightforward as Guardian programs (for example, you can't use 'INV' and must write the email to a file accessible by the OSS program).

Regards,
Bill

Keith Dick

unread,
Jul 12, 2017, 12:14:51 PM7/12/17
to
Thanks for mentioning that curl can do enrypted SMTP. I did not know it could do that.

Henrik Paludan-Mørk

unread,
Aug 17, 2017, 9:09:16 AM8/17/17
to
In my solution landscape, this would not be allowed.
I am writing code to put the email address and body into an MQ message and sending that to my ESB, for processing into mail there.

Why do we always expect that our platform MUST DO EVERYTHING even when other players in the system landscape are just so much better suite for this task ? Also, for security reasons i would have to ask that a hole be punched in a firewall in order to reach the mail server from the tandem. I have a feeling that such a request would be severely frowned upon.

Right tool for the proper job. Tandem CPU cycles is a very expensive way to send mail in my opinion.

//Henrik

wbreidbach

unread,
Aug 17, 2017, 10:55:14 AM8/17/17
to
It always depends on your requirements.
We are using sendmail to send mails from the NonStop using our mailserver. The amount of CPU cycles used for that are not really measurable. But the NonStop sends the mail and the NonStop has the protocol from sending the mail! And that protocol sometimes is very important.
Our application is using SQL tables for building the mail, sending the mail and keeping the history. The auditors like that because every mail sent from the NonStop can be found in the database.
0 new messages