November 8th, 2012, 02:21 AM
Email with a4 size paper with print option
Now i have to send mail with print option. the mail should look like a page. contents of the mail should be inside the page. if i click on print like to take printout on a4 size paper. help me.
here it is my code
<html > <head></head> <body> <table> <tr><td>Hello!'." ".'</td></tr> <tr><td>' . "". '</td></tr> <tr><td>' ."This is test email message. ".'</td></tr> <br> <br> <img src="dashboard/user.png"/> </tr> </table> <tr></tr> <tr><td><input type="button" value="Print this page" onClick="window.print()"></td></tr> <tr><td><br>' . "Thanks and Regards with ". '</td></tr> <tr><td>' . "<a href='$url'>acb.com</a>". '</td></tr> </table> </body> </html>';
November 8th, 2012, 06:35 AM
Send it as/with a PDF attachement
Comments on this post
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984