GXINTERNET class¶
-
class
geosoft.gx.
GXINTERNET
¶ This library provides functions for accessing the internet and MAPI-compliant e-mail services. Supported by Oasis montaj ONLY.
-
static
download_http
((GXContext)ctx, (str)arg1, (str)arg2, (int)arg3) → int:¶ Download HTTP file from the internet to file.
Parameters: - ctx (
geosoft.gx.GXContext
) – The GX execution context - arg1 (str) – HTTP URL
- arg2 (str) – File Name to save to
- arg3 (int) – No longer used, just pass 0
Returns: 0 - Ok 1 - Error
Return type: int
New in version 5.0.0.
Note:
The file must be stored on a server that supports the HTTP protocol and not require a password.
See also
iserver.gxh internet class.
- ctx (
-
static
send_mail
((GXContext)ctx, (str)arg1, (str)arg2, (str)arg3, (str)arg4, (str)arg5, (str)arg6, (str)arg7, (str)arg8) → None:¶ Prepaire an email for the user.
Parameters: - ctx (
geosoft.gx.GXContext
) – The GX execution context - arg1 (str) – Recipient Name (“” for none)
- arg2 (str) – Recipient Address (“” for none)
- arg3 (str) – szSubject (“” for none)
- arg4 (str) – Message Text (“” for none)
- arg5 (str) – Attachment1 File Name (“” for none)
- arg6 (str) – Attachment1 User Name (“” for none)
- arg7 (str) – Attachment2 File Name (“” for none)
- arg8 (str) – Attachment2 User Name (“” for none)
Returns: Nothing
Return type: None
New in version 5.0.0.
Note:
Requires a MAPI complient mail system to be installed on the client machine.
- ctx (
-
static