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.