Skip to main content
Participant
December 26, 2021
Answered

Send Email from Xampp? [Branched from 2017 topic]

  • December 26, 2021
  • 2 replies
  • 449 views

Do you configure xampp to send emails?

This topic has been closed for replies.
Correct answer osgood_
quote

Do you configure xampp to send emails?


By @Manuja22398605xd1n

 

No, usually php emails will only be sent if the actual page is hosted on a real remote server not if the page is hosted on a local development server such as xampp. I always test by uploading the page to a real server.

2 replies

B i r n o u
Legend
December 27, 2021

@Manuja22398605xd1n Yes you shoudl be able to configure Xampp to send mail... @osgood_ , I agree that online is a far better solution, but well, Xampp is almost ready for such a task.. and should do the job

 

for this we will have to configure the php.ini file (located in the PHP folder)... where near line 1000 on could define the smtp server (which can be any smtp one like (gmail, your own, etc...))... then one will have to reproduce these setting in the sendmail.ini located in the sendmail folder depending on the PHP script that will be writen.

 

@Manuja22398605xd1n if you need further info, I could set up a test and write some script for that... just let know

B i r n o u
Legend
December 27, 2021

@osgood_ it is only .ini file... to modify, it is thus TXT file which allow to modify at the loading the current instance of the service... (nothing is definitive...)
so, in case of problems, you just have to replace the basic ini and everything is working again...
that's the magic of servers

@Manuja22398605xd1n if you still want to give it a try, please, let us know

Legend
December 27, 2021

The problem is one thing leads to another. Panic quickly sets in and you start doing stupid things like using the terminal to try and resolve  issues only making them worse, opening other files because you have found a solution by Googling only to find this solution is for some other server xampp is capable of running but throw it into the mix just in  case........oops you forgot to make a backup of the files you changed or you changed a handful but can't remember which ones.......and you have  no idea what those terminal instructions are doing or did........a reinstall doesnt fix  the issues........unless you know what you are doing its best left alone.

osgood_Correct answer
Legend
December 26, 2021
quote

Do you configure xampp to send emails?


By @Manuja22398605xd1n

 

No, usually php emails will only be sent if the actual page is hosted on a real remote server not if the page is hosted on a local development server such as xampp. I always test by uploading the page to a real server.