Skip to content

Instantly share code, notes, and snippets.

@ytkhs
Created July 5, 2013 02:58
Show Gist options
  • Save ytkhs/5931382 to your computer and use it in GitHub Desktop.
Save ytkhs/5931382 to your computer and use it in GitHub Desktop.
mac で phpの mail() を使うとき
/*
% sudo postfix start
% tail -f /var/log/mail.log
*/
<?php
mail(
'[email protected]', // your email address
'Test', // email subject
'This is an email', // email body
"From: Me <[email protected]>rn" // additional headers
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment