set_proxy
set_proxy($proxy); - set the proxy through which all mail functions will work
the function accepts parameters as input:
$proxy – proxy. (proxy must be of type SOx, supports socks4, socks5 and https proxy with authentication ) type of proxy you need to specify using the prefix : socks:// and socks4:// or socks5://, e.g. socks5://127.0.0.1:9150, if the proxy type https then the prefix should not be specified. To reset the proxy, pass an empty string "". Login and password, if any, can be specified using ; - for example "11.11.11.11:345;login;password"
After testing, the function returns the result of its work to the script :
true – successfully setfalse – failed to set