Created
August 9, 2015 05:29
-
-
Save gautamkrishnar/c993ce2ac192bd8176a3 to your computer and use it in GitHub Desktop.
Sending an e-mail using PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
< ?php | |
// the message | |
$msg = "First line of textnSecond line of text"; | |
// use wordwrap() if lines are longer than 70 characters | |
$msg = wordwrap($msg,70); | |
// send email | |
mail("someone@example.com","My subject",$msg); | |
? > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment