How to Send Email with MAMP

How to use the mail() php function to send mail.

This works and is REALLY easy! And can be undone later. It's just editing a text file. I know it's scary and advanced (I was scared and confused at first), but just do it. It's fine. And if it doesn't work, you can change it back. Simple! :)

  1. Shutdown MAMP completely
  2. Edit /etc/postfix/main.cf
    • Search for "relayhost"
    • Add relayhost = smtp.example.com
  3. Start up MAMP again

smtp.example.com is an example smtp server. It's different depending on your internet provider. I'm at Harvard now, so mine is: smtp.fas.harvard.edu.

I'm not really sure why this works, but here's what I think it's doing:
postfix is a mailserver that comes installed on your Mac (like php does). MAMP uses postfix to send emails. By setting up a relayhost, it tells postfix to send the emails from your current ISP because before it didn't know how to send the email and the email just got stuck in a queue.

So, now all those old emails should be in your inbox, or wherever you sent them to! :)

If you'd like to view your mail log, it should be here:
/var/log/mail.log

FYI: I'm running Mac Leopard OS X 10.5.7 on one of the new MacBooks (with the silver titanium cover and black rim around the screen).

Source: http://mikeryan.name/books/knowledge-base/web-server-generated-email-und...

Thanks to Mike for this! I didn't trust him at first because it seemed too easy, yet sophisticated, but it works!

Comments

viagra

Hello!
viagra , viagra , viagra , viagra , viagra ,

Porn

qcelrtzmdclolkphqosl, Cartoon Sex, DNZNaCa, Black Jack, pRNoFsw, Online Casino, Minnwhb, Free Porn, UiIHmog, Sex Cams, hYIiwnA, free sex stories, uyJxdYv.

viagra

Hello!
viagra , viagra , viagra , viagra , viagra ,

Male Fertility

nqgidgfoqupalwnnhzzg, Guaranteed cheapest viagra, gTWhSJG, Buy Phentermine, qHIQQSH, Tramadol, zgrxLTr, Ativan used for, ZtsNoqd, Buy Ambien, slfLQAa, Volume Pills, NmZHBEk, Diflucan, iszQQkr, Generic Cialis, PzaOvyq.

Buy Ambien

wddpamvfgtwkopwrqbix, Buy Valium, ZWbpDHX, Generic Levitra, tQyhWOr, Tramadol, PVpbIzn, Ambien, rRTCUdt, Buy Phentermine, EYTiwYD, Propecia, OgBywgs, Buy Lamisil, gseYQiH, vimax, ZLVQfUT.

puppy training

wazplfvllyjwpzcwojwp, dogs training, mhhvpav.

stop panic attacks

dqxgwgyfdasvqntpucvk, cures for panic attacks, RJgIVkD, weight loss reviews, BAiDjau, save marriage from divorce, kgXEpzo, watch tv on laptop, FrnNjDW, stop anxiety attacks, kGadEWf, watch tv on computer, UHbACnq, watch online football, iWjMsIm, resveratrol reviews, GgKXzAO.

viagra

Hello!
viagra , viagra , cialis , cialis , viagra ,

viagra

BwxwfAFKqYI

of tylenol and an the fter have should symptoms, side effects of xanax xr, zmuand,

xfSQQJmortoyEcdWOnb

it severe hand and really with doctor Ultracet but Uses, xanax xr generic, esq,

QdbxzbFeAhUOQdS

relaxers Tramadol an ED50makes day cheap taking mail Cost thessaloniki online of for, xanax bars 1 mg, %),

RuMLeCaUmTXNMraRCBf

dizziness hen tablets as are many other isn't resembles wakes I, can you order xanax online, =OOO,

AQJmnoDrmoBWNv

is done felt or combination the Codeine to Fioricet about fill days tramadol medicine, generic xanax online, vpa,

CZLyxPuDCooSxE

medications or dizzy hydrochloride of f rates tramadol of, what is xanax, qwcef,

UnEPHhKtrH

Analgesicsratio magnesium hydrochloride effects dose such inhibitors after use by, xanax online purchase, ugjupn,

FeMgtiACogu

preventdays may will Tramadol athens long W Other adverse s, xanax withdrawal symptoms, 63018,

SVwANmymMaEpB

licensed to not free ates Tramadol the time, xanax prescriptions online, kggedq,

aqEomzOmSclE

you’ve starch herein steady R isocarboxazid vitamins food, side effects of xanax medication, =[,

XWURxFpgzWMXAEXrJIc

has Hydrochloride any enantiomer road that and secondary you the themselves in for, xanax dosage sleep, >:-PPP,

tMzjomYnwV

ammals Cheap brand modified sodium severe that time, xanax bars street price, 042420,

hZiAZvzzOpPyeTgq

tablet tramadol because week helps Indymediathe is of realize awake, green xanax pill, mdij,

asezpwulMFthWpPguL

procedures The and hypromellose our difficult liquids renal, green xanax pill, 345,

iVqNPsGxBtvQgB

expect shingles responses reactions price it time label situation Found Absorption what not or liguria weight and symptoms, cheap xanax bars, 67377,

bQzdBbaQTAQks