No description or website provided.
Latest commit a62c98d Nov 22, 2016 @itswadesh committed on GitHub Update
Failed to load latest commit information.
api Integrated angularjs Mar 29, 2016
css Integrated angularjs Mar 29, 2016 Update Nov 23, 2016
app.js Integrated angularjs Mar 29, 2016
books.pdf Moved configurations into a single file Mar 29, 2016
books.sql Config file created Mar 28, 2016
index.html Integrated angularjs Mar 29, 2016

Send PDF document as email attachment using PHP

The full tutorial can be foud @

Import data

Import books.sql into your MySQL This will create necessary tables and insert sample data into it.

Change the settings

The following settings need to be changed at config.php

  define('DATABASE_HOST', "localhost");
  define('DATABASE_NAME', "demos");
  define('DATABASE_USERNAME', "root");
  define('DATABASE_PASSWORD', "root");

  define('ATTACHED_FILENAME', "books.pdf");


  define('FROM', "");
  define('TO', "");
  define('SUBJECT', "The title");
  define('CONTENT', "The content");

Run the program

Copy the project into your PHP servers root directory and access the index.php

This should create the PDF page and display it in the browser.