Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure WAMP server to send email

Is there a way that I can configure the WAMP server for PHP to enable the mail() function?

like image 218
user544079 Avatar asked Apr 24 '11 21:04

user544079


People also ask

Can I send mail from localhost?

You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. For example, you can configure C:\xampp\php\php. ini and c:\xampp\sendmail\sendmail.

Can I use SMTP in localhost?

WP Mail SMTP makes it easy to use SMTP on localhost so you don't get the Could not instantiate mail function error. It supports many free providers that are ideal for trying things out before you launch.

Can I send email from localhost PHP?

The PHPMailer library provides the easiest way to send an email from localhost with an SMTP server using PHP. Not only the text email, but you can also send HTML email from localhost in PHP using PHPMailer.


1 Answers

Configuring a working email client from localhost is quite a chore, I have spent hours of frustration attempting it. I'm sure someone more experienced may be able to help, or they may perhaps agree with me.

If you just want to test, here is a great tool for testing mail locally, that requires almost no configuration:

http://www.toolheap.com/test-mail-server-tool/

It worked right off the bat for me, hope this helps you.

like image 52
Wesley Murch Avatar answered Sep 24 '22 14:09

Wesley Murch