AW: Omnis Classic (7381) Externals: SMTP with Authentication & secured Webservice/SOAP interaction
Hi Simon,
My advice: use cURL.
You can test the communication without involving Omnis, on Windows using batch files, and then, when you have everything running you can call the CMD/batch files from Omnis, passing parameters appropriately. cURL is available for Windows, and does just about anything you can imagine. It is easy to find examples. SMTP and SOAP (outgoing) ought to be simple.
Another option to send mails is
All sorts of methods of authentication are available for sending mails. Very easy to use.
echo ************************************************************
echo Start mailsend process …
if “%MailSendUser%”==”” (
echo “%MailSendExe%” -v -log “%MailSendLog%” -smtp %MailSendSmtp% -port %MailSendPort% -t “%MailSendTo%” -f %MailSendFrom% -sub “%MailSendSubject%” -attach “%MailSendBodyFile%,text/plain,i” -attach “%MailSendBody%,text/plain”
“%MailSendExe%” -v -show_attach -log “%MailSendLog%” -smtp %MailSendSmtp% -port %MailSendPort% -t “%MailSendTo%” -f %MailSendFrom% -sub “%MailSendSubject%” -attach “%TempMailSendBodyFile%,text/plain,i”
) else (
echo “%MailSendExe%” -v -log “%MailSendLog%” -smtp %MailSendSmtp% -port %MailSendPort% -auth -t “%MailSendTo%” -f %MailSendFrom% -sub “%MailSendSubject%” -attach “%MailSendBodyFile%,text/plain,i” -attach “%MailSendBody%,text/plain” -user %MailSendUser% -pass MailSendPass
“%MailSendExe%” -v -log “%MailSendLog%” -smtp %MailSendSmtp% -port %MailSendPort% -auth -t “%MailSendTo%” -f %MailSendFrom% -sub “%MailSendSubject%” -attach “%TempMailSendBodyFile%,text/plain,i” -user %MailSendUser% -pass %MailSendPass%