SMTP
If you need to send email from PHP, you will need to configure and run SMTP. An easy way to set up SMTP is to use the configuration tool built into MAMP PRO.

-
Include SMTP service in GroupStart
Check this to include SMTP in the GroupStart. If enabled, SMTP will automatically start/stop when the Servers button is pressed.
-
Set outgoing mail domain to:
If you want to use the PHP function
mail()to send emails to your own email address (like mail@johndoe.com), simply enter “johndoe.com” (without quotes — replace with your actual domain name) in this field.
-
Use an intelligent host for routing
-
Outgoing server:
Enter the name of your outgoing mail server. For example, this could be “smtp.johndoe.com” (without quotes). Check with your provider if you are unsure of the server name. -
Use authentication
Unencrypted: Your username and password are sent unencrypted.MD5 Challenge-Response: MD5 challenge response authentication is used.
-
Username
Enter the username of your email account. -
Password
Enter the password for your mail account. -
Authentication
What type of authentication to use.
-
- Path to SMTP log file
The path to your SMTP log file.