sendmail () php xampp localhost Network with proxy

1

Well, I would normally send LOCALHOST emails using sendmail

mail($to, $assuntoHTML, $mensagemHTML, $headers) 

[sendmail]

 smtp_server=smtp.gmail.com
 smtp_port=587
 error_logfile=error.log
 debug_logfile=debug.log
 smtp_ssl=auto
 [email protected]
 auth_password=minhasenha

 smtp_ssl=tls
 tls_certcheck off

It turns out that in the work network, they put a proxy.

I went there and opened the smtp port 587, but even then I can not send more email

Can someone help me, perhaps, enter the proxy information to see if it works?

Type use proxy 192.1.1.1 port 1234

Thank you very much.

php.ini

[mail function]
SMTP = smtp.gmail.com
smtp_port = 587
sendmail_from = [email protected]
sendmail_path = "C:\"\xampp\sendmail\sendmail.exe\" -t"
mail.add_x_header = Off
    
asked by anonymous 07.11.2014 / 14:45

1 answer

1

Judging by the additional options not present by default in PHP.INI I'd say you're using Fake Sendmail for Windows , correct?

Assuming that yes, as part of an answer in SOEN regarding PHP-Mailer, there is no such proxy SMTP, you just need to define the host and the source port, which in Fake Sendmail appears to be configured by setting the hostname directive in the sendmail.ini file:

>
hostname=192.1.1.1:1234

Remember to restart the server after saving the configuration file.

    
07.11.2014 / 14:59