SMTP using Outlook.com - SOLVED

Werner Dirix Werner.Dirix at smartsystems.be
Wed Jun 10 10:13:58 EDT 2015


Hi Mike,

When in Studio 5 you replace the files wesecure.dll and weshared.dll with the files from Studio 6 (on Mac the files are wesecure.u_lib and weshared.u_lib) SMTPSend STARTTLS/STLS also works in Studio 5.  Also FTP filetransfers are more reliable and a lot faster.

I don't know if replacing these files has an influence on other commands or maybe breaks something.  I have only tested it with FTP and now SMTPSend.

Werner


-----Oorspronkelijk bericht-----
Van: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Namens Mike Matthews
Verzonden: woensdag 10 juni 2015 15:54
Aan: OmnisDev List - English
Onderwerp: Re: SMTP using Outlook.com - SOLVED

Ah!  But not v5.2 which explains why I have the problem.  

Now very interestingly the IMAP commands also have this wrong in the manual.  I found that the value is now a number value and not kFalse/kTrue, so a value of 2 works for connecting to more IMAP servers.  But the SMTP command still only uses kFalse/kTrue.

Good searching there, now to get the IMAP commands so much faster.

Mike





Mike Matthews,
 Managing Director, SQLWorks Software Ltd

Tel: +44 (0)1271 375999

Email: mike.matthews at sqlworks.co.uk

Web: www.sqlworks.co.uk

SQLWorks replaces Sage, ACT!, Opera, Access, SAP

On 10 Jun 2015, at 14:47, Werner Dirix <Werner.Dirix at smartsystems.be> wrote:

> Hello All,
> 
> Sometimes it pays to search all the manuals...
> 
> The explanation of the SMTPSend command in the latest version of the Omnis_Command_Reference manual is wrong.
> 
> In Studio version 6 the secure-parameter of the SMTPSend command is not a Boolean anymore but an integer.
> The Whatsnew-manual describes it as follows:
> 
> ------------------------------------------
> TLS support for SMTPSend and POP3
> 
> The SMTPSend and POP3 commands now support Transport Layer Security 
> (TLS), a secure network protocol, including STARTTLS for the SMTPSend 
> command, and STLS for the POP3 commands. STARTTLS establishes an SSL 
> connection after the initial socket connection to the SMTP or POP3 
> server has been established. You can request this when issuing a 
> command that connects to the server, using the optional Secure parameter, which has the possible values:
> 0 means not secure
> 1 means immediately secure
> 2 means connect and then use STARTTLS/STLS to make the connection 
> secure
> --------------------------------------------
> 
> This solved my problem.
> 
> Best regards,
> 
> Werner
> 
> 
> 
> -----Oorspronkelijk bericht-----
> Van: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] 
> Namens Mike Matthews
> Verzonden: woensdag 10 juni 2015 10:27
> Aan: OmnisDev List - English
> Onderwerp: Re: SMTP using Outlook.com
> 
> Hello Werner,
> 
> What does the server return into your listening method $cinst.$smtpstatusproc?  The verbose reply from the SMTP server is recorded here, so you might get a better idea, but maybe not.
> 
> I am currently trying to talk to an Exchange server, deep joy.
> 
> Mike
> 
> 
> 
> 
> Mike Matthews,
> Managing Director, SQLWorks Software Ltd
> 
> Tel: +44 (0)1271 375999
> 
> Email: mike.matthews at sqlworks.co.uk
> 
> Web: www.sqlworks.co.uk
> 
> SQLWorks replaces Sage, ACT!, Opera, Access, SAP
> 
> On 10 Jun 2015, at 09:21, Werner Dirix <Werner.Dirix at smartsystems.be> wrote:
> 
>> Hello,
>> 
>> I am trying to send e-mails using the outlook.com SMTP-server.  According to Microsoft this is needed:
>> 
>> server address: smtp-mail.outlook.com user name: Your full 
>> Outlook.com email address (not an alias)
>> password: Your Outlook.com password
>> port: 587
>> TLS/SSL encryption required: yes
>> 
>> I am using Studio 6.1.2 (32-bit) on Windows.
>> OpenSSL 32-bit is installed and seems to working because I can send mails via Google's SMTP-server.
>> 
>> SMTPSend 
>> ('smtp-mail.outlook.com:587',ivSender,ivDestination,ivSubject,ivText,
>> '','',ivName,'$cinst.$smtpstatusproc',ivPriority,,ivSMTPUsername,ivSM
>> TPPassword,kTrue,kTrue) Returns ivStatus
>> 
>> I get the following errormessage: "Error: -1021 - The OpenSSL library returned an error; call WebDevGetSecureError for more information"
>> 
>> WebDevGetSecureError tells me this: "6368:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:.\ssl\s23_clnt.c:794:"
>> 
>> 
>> 
>> Anyone has this working ?
>> 
>> Thanks,
>> 
>> Werner
>> 
>> 
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com



_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com


More information about the omnisdev-en mailing list