[Migrated content. Thread originally posted on 11 June 2004]
Hello Everyone,I have been looking into how we can code our COBOL system to send emails. I have looked at the various options and decided that the C$SOCKET solution that links directly to the SMTP port (25) is the best solution. (See example program sendmail.cbl). Reason being we need to run our system on both windows and unix platforms.
I have got this program working in our test environment and we will encorporate the code into our programs accordingly.
However, it does not show how we can email binary attachments such as word or pdf documents.
I am lead to believe that the binary files will need to be encoded into ASCII format and sent accordingly. Is this the case? If so how is it done and what is the syntax required to send it? Has anyone else managed to send attachments at all?
Please Help me as I am now stuck on where we go from here.
Regards
Brian



