SMTPSend
Mike Matthews - Omnis
omnis at lineal.co.uk
Wed Jan 31 09:40:45 UTC 2024
Hello Andrew,
Kelly is right, as is usually the case, there are two final params you need to set, one of which is usually kFalse, but defaults to kTrue! You have only set one of them.
Secure
Verify
SMTPSend (server,from,to,subj,body,cc,bcc,name,stsproc,pri,xtrahdrs,user,pass,secure {Default zero insecure;1 secure;2 use STARTTLS},verify {Default kTrue}]) Returns status
Keep trying different values of Secure, 0, 1 or 2, until you get success.
Make Verify = kFalse unless you understand Certificates.
Id you make use of the value in ‘stsproc’, it will provide the response from the SMTP server. The response is a string char of the conversation, which I think goes into #S1. Make a new method with this name, and in there, the value of #S1 is set.
Thanks
Mike Matthews
Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 31 Jan 2024, at 04:22, Kelly Burgess <kellyb at montana.com<mailto:kellyb at montana.com>> wrote:
Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.
Hi Andrew,
You don't say what version of Omnis is involved. I'm not sure when things changed, but the current SMTPSend wants a 0,1,2 in the secure parameter following the password, with 2 meaning use TLS. and there's a verify parameter after that.
https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fomnis.net%2fdevelopers%2fresources%2fonlinedocs%2fCommandRef%2fCommands_A-Z%2fsmtpsend.html%23smtpsend&c=E,1,t2ECxR_ek6mi4qZ_-gllfqvsXMEuNcdj_eVRZc_vbCYRPsL0Bmt72A9MLpFB3-fmDWCkAfi6DRs0pxIqW-I8E0WatjfOWTPdsfUFOHxzUg,,&typo=1
Try ending your command with ..,SPSMTPPASSWORD,2,kFalse)
Kelly
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,5TtqL2UwrKViWzxb5kmDG6KteHGHyEMQ-zPa_rD7Nl3SxzcEqU9RQMsQZnP8QEbxpNW24LVI1vb0xOK4cwDOT3ZYJW_OnhythLX4f3sn2Xkv1yq0SHS7FA,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list