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

Asked

Viewed 5,990 times

1

Well, from time to time, I find myself in the following situation where I cannot take the test of sites/systems that I develop. Practically always, I develop the system on my machine, to then go up to a hosting server.

I always prefer before testing everything, to upload the site/ system practically "ready", with everything tested. The emailing is an exception I haven’t been able to resolve yet.

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

  • 1

    Yes it is possible, believe me! You can start with: How to send email from localhost using the PHP mail function?

  • opa, show, had not seen something here, and look who looked for :(

  • rray then independent of the server né, xampp, wampp, easyphp, gives in the same

  • 1

    Yes @Dichrist, for anyone. See the answer I posted.

  • 1

    The configuration is done in php.ini, you have another interesting question if you haven’t seen it, What a difference from Xampp, Wamp, Easyphp, Zwamp and PHP? :)

  • I’ll test her tomorrow, today I won’t have time, I need to solve this problem

  • Managed to solve?

  • rray I could only get it now hahaha, at this exact moment I’m testing

Show 3 more comments

2 answers

2

Yes, because I use it 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]

2

Browser other questions tagged

You are not signed in. Login or sign up in order to post.