Is it possible to send email with xampp from a local server?

1

Well, from time to time, I find myself in the following situation where I can not test the sites / systems I develop. Almost always, I develop the system on my machine, and then upload it to a hosting server.

I'd rather always test everything, to upload the site / system pretty much "done", with everything tested. Email is an exception that I have not resolved yet.

I want to know if you can send emails from my php application to test this functionality (regardless of the plugin, such as phpmailer for example), only using xampp from my local machine, that is, without a domain itself and without a server. hosting.

    
asked by anonymous 03.03.2016 / 21:00

2 answers

2

Yes, I use this here. Just edit in php.ini pointing to any email server you use:

[mail function]
; For Win32 only.
; http://php.net/smtp
//MEU IP INTERNO, MAS PODE USAR O SMTP DO GMAIL, YAHOO, UOL...
SMTP = 192.168.203.55 
; http://php.net/smtp-port
//A PORTA COM AUTENTICAÇÃO É OUTRA
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = SEUENDEREÇ[email protected]
    
03.03.2016 / 21:04
2

Because it is independent of the script you are going to use, just use the data in a Gmail account, for example:

Servidor: smtp.gmail.com
Porta: 465 (SSL) ou 587 (TLS)
Usuário: [email protected]
Senha: Sua senha

The limit is 2,000 daily submissions. More details of the boundaries here: link

Upload settings: link

    
03.03.2016 / 21:09