Re: STARTTLS - send secure email 4D v15.5

2018-06-30 Thread Keisuke Miyako via 4D_Tech
keep in mind that the effect of "1" (use SSL) has been adjusted over the years.

in v12.1, when SSL was first introduced, it simply meant "SMTP over SSL" a.k.a. 
implicit SSL.

this is the kind SSL that is considered "less secure", for example by Google,
where the user must explicitly turn on "access for less secure apps".

v13.2 extended the "use SSL" option,
where 0 (previously "don't use SSL") is now STARTTLS, a.k.a. explicit SSL.
the plugin will automatically switch to SSL when requested by the server.

"1" (SMTP over SSL) is kept for compatibility.
the plugin will NOT switch to SSL in response to the STARTTLS command.

2018/06/29 16:53、jarosz via 4D_Tech 
<4d_tech@lists.4d.com> のメール:
$error:=SMTP_Send ($smtp_id;1)  // to force use of ssl?
It's when I do this that I get the timeout error and no send.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Trouble Decoding Base64 Text

2018-06-30 Thread Bernd Fröhlich via 4D_Tech
Dave Nasralla:

> Nevermind, though I'm not entirely sure this isn't a kind of bug.
> If you change the Encoding by adding two equal signs to the end
> "eyJ1c2VySWQiOiJiMDhmODZhZi0zNWRhLTQ4ZjItOGZhYi1jZWYzOTA0NjYwYmQifQ=="
> 
> It properly decodes to:
> {"userId":"b08f86af-35da-48f2-8fab-cef3904660bd"}

It´s not a 4D bug although 4Ds implementation could be better.
If you base64 encode your string the correct result includes the == at the end.
If you ommit them, then some decoders are more robust than 4Ds and can decode 
the string anyway but technically the string without the == ist not a properly 
base64 encoded string.

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**