Send Mail in php

Share:

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 1\r\nLine 2\r\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()$message wordwrap($message70"\r\n");
// Sendmail('caffeinated@example.com''My Subject'$message);?>

No comments

Ads