Configuring a WAMP server to send email

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

+83
php phpmailer wamp
Apr 24 2018-11-21T00:
source share
7 answers

Setting up a working mail client from a local host is a rather difficult task, I spent a lot of time trying to disappoint. I am sure that someone more experienced can help, or they may agree with me.

If you just want to test, here is a great tool for checking mail on the local computer, which requires almost no configuration:

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

It worked from the start, hope it helps you.

+184
Apr 24 2018-11-21T00:
source share

Install Fake Sendmail (download sendmail.zip ). Then configure C: \ wamp \ sendmail \ sendmail.ini:

 smtp_server=smtp.gmail.com smtp_port=465 auth_username=user@gmail.com auth_password=your_password 

The above will work against your Gmail account. And then configure php.ini:

 sendmail_path = "C:\wamp\sendmail\sendmail.exe -t" 

Now restart Apache and that is basically all you have to do.

+41
Jun 26 2018-12-12T00:
source share

Using the open source program call Send Email , you can send via wamp quite easily actually. I'm still tweaking it, but here is a great tutorial from jo jordan . Requires installation less than 2 minutes.

Just tried it and it worked like a charm! As soon as I uncommented the error log and found out that it stops at pop3 authentication, I just deleted it and sent it beautifully. Good luck

+4
Sep 08 '12 at 3:26
source share

To send mail you need an SMTP server. If you have one available that does not require SMTP authentication (perhaps your ISP?), Just edit the "SMTP" ([mail function]) parameter in the php.ini file.

If this is not an option, because your SMTP server requires authentication, you will not be able to use the internal mail () function, and you must use some third-party class that supports smtp auth. e.g. http://pear.php.net/package/Mail/

+2
Apr 24 2018-11-21T00:
source share

I tried the Test Mail Server Tool and, while it worked perfectly, you still need to open an email on some client.

I found Papercut : https://papercut.codeplex.com/

For configuration, it’s as simple as the Test Mail Server Tool (pratically zero-conf), and also serves as an email client, with views for Message (great for HTML emails), Headers , Body (for checking HTML) and Unprocessed (full unverified address Email).

It also has a Partition view to separate the different types of media found in the letter.

It has a super clean and friendly user interface, a good log viewer and gives you notifications when you receive an email.

I think this is perfect, so I just wanted to give my 2c and maybe help someone.

+1
Dec 31 '16 at 15:01
source share

Sendmail did not work for me, so I used msmtp 1.6.2 w32 , and most of them just followed the instructions in DeveloperSide . Here is a brief description of the installation for posterity:

Enabled IMAP access under a Gmail account (one of the msmtp messages sends letters)

Enable access for less secure applications . Log in to your google account and go here

Modify php.ini , find and modify each parameter below to display the following:

 ; These are commented out by prefixing a semicolon ;SMTP = localhost ;smtp_port = 25 ; Set these paths to where you put your msmtp files. ; I used backslashes in php.ini and it works fine. ; The example in the devside guide uses forwardslashes. sendmail_path = "C:\wamp64\msmtp\msmtp.exe -d -CC:\wamp64\msmtp\msmtprc.ini -t --read-envelope-from" mail.log = "C:\wamp64\msmtp\maillog.txt" 

Create and edit the msmtprc.ini file in the same directory as your msmtp.exe file, as follows, replacing it with your own letter and password:

 # Default values for all accounts defaults tls_certcheck off # I used forward slashes here and it works. logfile C:/wamp64/msmtp/msmtplog.txt account Gmail host smtp.gmail.com port 587 auth on tls on from ReplaceWithYourEmail@gmail.com user ReplaceWithYourEmail@gmail.com password ReplaceWithYourPassword account default : gmail 
+1
Mar 28 '17 at 6:12
source share

I used Mercury / 32 and Pegasus Mail to work mail (). It works great as a mail server if you want your email address to end with your domain name.

0
Oct 06 '17 at 13:24
source share



All Articles