buruguduy - 2012-08-12 08:10:40 - In reply to message 2 from Manuel Lemos
No sir, the setup would be tested using pur network but the smtp used is gmail, but since we have proxy over the server, it requires credential for that.
How can we add that functionality, i go over the smtp_class but I think its not specified there, am I correct?
Manuel Lemos - 2012-08-22 03:41:40 - In reply to message 3 from buruguduy
That can be done using code from the HTTP client class that already does proxy authentication and routing. I just need more time to setup a proxy server here to test it. Just let me know if you can wait.
buruguduy - 2012-08-22 06:41:13 - In reply to message 4 from Manuel Lemos
Thanks manuel, Im sorry that I couldnt wait for your reply and find out some other things that might possibly worked. I got it working by adding few lines, I just modify the smtp_class and added properties for proxy login and password, then i added this line under the ConnecttoHost method just below the User-agent header.
&& $this->PutLine('Proxy-Authorization: Basic '.base64_encode("$this->proxylogin:$this->proxypasswd"))
Im not sure if its the best thing to do this, but its working.
Thanks a lot.
Roy Martins - 2013-05-13 19:41:19 - In reply to message 5 from buruguduy
Hi. Thanks for this class. It's great but I'm having issues with basic proxy connections without authentication. Is this correct?
$smtp->http_proxy_host_name='188.8.131.52'; /* Change this variable if you need to connect to SMTP server via an HTTP proxy */
$smtp->http_proxy_host_port='3128'; /* Change this variable if you need to connect to SMTP server via an HTTP proxy */
Is there something wrong with my proxy or your script?