Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

SetProxy – PB Docs 2022 – PowerBuilder Library

SetProxy – PB Docs 2022

SetProxy

PowerScript function

Description

Sets the server proxy of this email message.

Applies to

SMTPClient object in Objects and Controls

Syntax

Argument

Description

smtpclient

A SMTP client object identifying the client in which you
want to set the server proxy.

host

A string that contains the proxy services. When it is set
to an empty value, it indicates the server proxy is
cancelled.

port

A long that contains the services port.

proxytype (optional)

Specifies the values of the proxy type. Values are:

0 — Use SOCKS4 Proxy.

1 — Use SOCKS4a Proxy. The proxy resolves URL
hostname.

2 — Use SOCKS5 Proxy.

3 — (Default) Use SOCKS5h Proxy. The proxy resolves URL
hostname.

username (optional)

A string that contains the services proxy name.

password (optional)

A string that contains the services proxy password.

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, the method returns null.

Examples

The following example sets the IP address and the port of the
proxy.

The following example sets the IP address, port, proxy type, user
name and password of the proxy.

The following example cancels the proxy that is set before.

See also

LogFile

Send

SendAsync

SendAsyncCancel


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x