Webservices & Smtpmail

Dear all,

I have a web services program (Openedge 4GL) that also trigger an email via smtpmail.p . The external program that call my web services have very short latency wait (I can't control the external party) but due to the nature of the smtpmail communicating with the smtp server, which usually takes 11~20 seconds depend on load , the external program always end up have a time-out error.

Is there a way for me to trigger the email separately hence I do not need to let the external program waiting for respond ? The application is an OE10.1C running on AIX 6.1.
 

Stefan

Well-Known Member
Call an AppServer asynchronously and let that handle the actual e-mailing?

Alternatively put the e-mail in the database and let a batch process handle e-mailing?
 
Tried AppServer asynchronously. It is running but somehow it will not trigger smtpmail.p . Still debugging what is wrong.

Batch email will probably the last option.
 

TheMadDBA

Active Member
Just call sendmail/mail directly using OS-COMMAND instead of smtpmail.p? The vast majority of use cases don't need the full functionality of smtpmail. The mail will get queued and your mail server on AIX will take care of the delivery.
 
Top