Postie, kInit, "too many arguments"

Started by stevengraff, September 13, 2014, 07:12:13 AM

Previous topic - Next topic

stevengraff

kInit worked fine, til I switched over to gmail, and needed to specify "tls" as the 6th argument. Now my script errors out with "Wrong number of arguments in function."

I count six:

   kInit (svr, fromaddr, userid, password, port, sec)

I must have done something fairly wacky, but I can't figure out what!


kdmoyers

The mind is everything; What you think, you become.

stevengraff

It's just that it's a relatively recent addition:

============
Ver 44044, January 05, 2011

   Added a sixth optional 'connection security' string parameter
   to the kInit function.  If specified, this optional parameter
   causes the extender to use either the Transport Layer Security
   (TLS) or its predecessor, the Secure Sockets Layer (SSL),
   cryptographic protocol for privacy and authentication when
   communicating with an SMTP, POP3, or IMAP server.
   
   The parameter accepts a blank string (""), "ssl", or "tls" as a
   value. For most servers you can use "tls" when you need to
   securely connect to a server.  The "ssl" option is provide for
   compatibly with legacy server implementations that may not
   support the newer TLS protocol. A blank string is equivalent to
   omitting the parameter entirely and indicates that no TLS or SSL
   protocol is to be used with the connection.
===========