Archive for month: May, 2012
Solved:Enabling sendmail on localhost for MAMP free version
/in Website Tips/by donEnabling the sendmail function on localhost to send and receive emails has turned out to be a project so I decided to figure out the solution and share it with everyone else.
In free version MAMP mail function is not enabled by default and you have to enable it yourself. At, first when I tried out MAMP on my localhost I found out about this when one of the application was not sending out the mail. So, I did some research but was not able to find much of anything however after digging and info gathering around the web and forums I finally found the solution.
Note that MAMP forums suggest to enable Postfix but for some odd reason I wasn’t able to get Postfix working with my domain’s email settings which is on gmail(google apps).
Solution:
First thing you have to do is locate php.ini which is located below:
Next, you will need to open up your php.ini file and find “[mail function]” you should do the following:
Existing MAMP default configuration:
I’m not really sure why MAMP’s default [mail function] settings have the Win32 options enabled and the unix path not turned on:
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
;sendmail_path =
Change it to this: (you can copy and paste the following code)
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = don@tripleroi.com
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path =/usr/sbin/sendmail -t -i -f yourname@example.com
Make sure you change your email from yourname@example.com to your own email.
The “sendmail_path =/usr/sbin/sendmail -t -i -f yourname@example.com” I found this in a forum thread, but figured I would put a little bit more detail into what I discovered so that its easy for people to understand. I’ve done this testing all in my localhost development it has been very helpful e-mailing me when I test out new applications. This worked for but its not guaranteed that it can work for anyone as it depends on your MAMP and OS version, Hope this helps.
Interested in working together?
Email Us
Have a project in mind?
- Solved:Enabling sendmail on localhost for MAMP free ver...May 15, 2012 - 7:51 pm
- SOLVED: Error loading stylesheet: An unknown error has occurred...October 14, 2010 - 3:33 pm
- Solved: WordPress Website Is Loading Very Slow – What...June 14, 2012 - 3:44 pm
Is OpenCart the right choice compared to other shopping...September 30, 2013 - 8:32 pm
SOLVED: Upgrading to php 7 wp-rss-multi-importer/inc/excerpt_functions.php...February 8, 2019 - 9:23 pm
- The Best Website Builders for 2019February 8, 2019 - 8:38 pm
- How to start a business blog?February 8, 2019 - 8:36 pm
- WordPress 5.1 What Does it Mean for Plugin and Theme De...February 8, 2019 - 8:30 pm
This solutions still works to this day.February 8, 2019 - 9:50 pm by Sean
This comment has been removed by a blog administrator.February 11, 2016 - 2:14 pm by Unknown
how to enable it on xampp on windowsJanuary 23, 2016 - 8:06 pm by Unknown
Hey there. Thanks for posting this. It was very helpful....January 14, 2016 - 4:10 pm by Anonymous
Some of our Work
SOLVED: Upgrading to php 7 wp-rss-multi-importer/inc/excerpt_functions.php on line 570February 8, 2019 - 9:23 pm
- The Best Website Builders for 2019February 8, 2019 - 8:38 pm
- How to start a business blog?February 8, 2019 - 8:36 pm
- WordPress 5.1 What Does it Mean for Plugin and Theme Developers?February 8, 2019 - 8:30 pm
- What’s New in WordPress 5.1?February 8, 2019 - 8:28 pm