#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    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
    PHP 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>'; 
  2. #2
  3. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,047
    Rep Power
    487
    Send it as/with a PDF attachement

    Comments on this post

    • Catacaustic agrees : Only way to do this and be sure that it's right.
    "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

IMN logo majestic logo threadwatch logo seochat tools logo