how to get localhost (xampp) to send emails?
From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.
| Announcements | Posted on | |
|---|---|---|
-
how to get localhost (xampp) to send emails?
Hi
I'm trying to test out a contact form I made but have no idea how to get my localhost to actually send emails.
I've got xampp installed under default settings and have not changed any of the configuration files.
I have gmail and hotmail accounts that I'm willing to use for testing my contact form. -
Re: how to get localhost (xampp) to send emails?It does, but I don't know what settings to apply.(Original post by estel)
Doesn't xampp already come with mail() and sendmail.exe ?
I've tried editing the php.ini and sendmail.ini files by following various tutorials online, but it doesn't seem to work. I'm not sure what I'm doing wrong as I'm only changing three or four attributes in total.
I'm a complete PHP newbie btw. Only just started to venture into it for this contact form purposes. I normally deal with HTML/CSS only (straightforward stuff
)
-
Re: how to get localhost (xampp) to send emails?
This shouldn't be too tough, you just need to edit the SMTP settings in your php.ini. Also make sure you can actually connect to the SMTP server in question, as some ISPs will block sending mail to arbitrary ISPs (BT does this from memory).
-
Re: how to get localhost (xampp) to send emails?I haven't bought a web-hosting space yet so my project at the moment is completely offline. Is there any way to simulate it just locally?(Original post by Dez)
This shouldn't be too tough, you just need to edit the SMTP settings in your php.ini. Also make sure you can actually connect to the SMTP server in question, as some ISPs will block sending mail to arbitrary ISPs (BT does this from memory). -
Re: how to get localhost (xampp) to send emails?Find the SMTP settings for Google or Hotmail or whatever you're using and plug them in. But check them first using a desktop email client (e.g. Outlook, Thunderbird) to see if you can actually connect. If not, you may need to find out what your ISP's SMTP server details are instead.(Original post by purplefrog)
I haven't bought a web-hosting space yet so my project at the moment is completely offline. Is there any way to simulate it just locally?
)