Groups
Groups
Sign in
Groups
Groups
PHP Developers' Group
Conversations
Labels
About
Send feedback
Help
mail() --> php file contents send via email? is possible?
0 views
mail
php
Skip to first unread message
Siva prabu
unread,
Sep 14, 2012, 6:10:46 AM
9/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
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 AM
9/14/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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"
;
http://php.net/manual/en/function.file-get-contents.php
regards !
vikas dwivedi
image.jpeg
Reply all
Reply to author
Forward
0 new messages