mail() --> php file contents send via email? is possible?

0 views
Skip to first unread message

Siva prabu

unread,
Sep 14, 2012, 6:10:46 AM9/14/12
to WEEKEND, Vikas Dwivedi

Hi dear friends,

kindly note the below image

@--> PrintGraph.php that page same display i send via mail 

@--> If the end user entered in text box the mail and click the send button means tha same format send via email.

@--> How can create a file?






Inline image 1



















regards,
Sivaprabu. G
Please don't print this e-mail unless you really need to. Save the environment.

image.jpeg

vikas dwivedi

unread,
Sep 14, 2012, 8:06:48 AM9/14/12
to Siva prabu, WEEKEND
Hello Siva,

use 

$message =  file_get_contents('PrintGraph.php?mlsno=87787');

then in message you will get complete page HTML.

use simple mail() function with headers as text/html to send mail 

// To send HTML mail, the Content-type header must be set
$headers  'MIME-Version: 1.0' "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";


regards !
vikas dwivedi 
image.jpeg
Reply all
Reply to author
Forward
0 new messages