Skip to main content

Way to send Email out of RM/COBOL

  • September 6, 2013
  • 2 replies
  • 0 views

I'm hoping someone can help me.  In our software we are able to generate and send out emails.  The current procedure we use is by calling a third party software that uses MAPI.  

Some of our customers are having issues running this, so I was wondering if there is a way in RM/COBOL to use SMPT? 

2 replies

I'm hoping someone can help me.  In our software we are able to generate and send out emails.  The current procedure we use is by calling a third party software that uses MAPI.  

Some of our customers are having issues running this, so I was wondering if there is a way in RM/COBOL to use SMPT? 

Two solutions come to mind, and both involve CALL SYSTEM:

1) Call the free BLAT utility, which can be downloaded from www.blat.net to send your message.  This is a small Windows command line utility that sends SMTP messages.  The downside is that it doesn't appear to support SSL or START/TLS authentication protocols (although I could be wrong about that).  But if you have an in-house SMTP server, that shouldn't be an issue.

2) Write a .NET program in Visual COBOL, C# or VB.NET using the System.Mail.SmtpClient class and invoke it using CAL SYSTEM.  That gives you more flexibility at the cost of more complexity.

Hope this helps.


Juan Urraburu
  • Participating Frequently
  • October 11, 2013

I'm hoping someone can help me.  In our software we are able to generate and send out emails.  The current procedure we use is by calling a third party software that uses MAPI.  

Some of our customers are having issues running this, so I was wondering if there is a way in RM/COBOL to use SMPT? 

Hi Amy,

You can use mailsend utility

code.google.com/.../mailsend

It supports ssl and has many options.

Regards,

Juan Urraburu