1 min read

Send Mail in php

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($message70"rn");
// Sendmail('caffeinated@example.com''My Subject'$message);?>

Share your Love

Leave a Reply

Your email address will not be published. Required fields are marked *