1 min read
Send Mail in php
Contents
Description
bool mail
( string $to
, string $subject
, string $message
[, string $additional_headers
[, string $additional_parameters
]] )
Using mail() to send a simple email:
<?php// The message$message = "Line 1rnLine 2rnLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()$message = wordwrap($message, 70, "rn");
// Sendmail('caffeinated@example.com', 'My Subject', $message);?>