No description or website provided.
PHP HTML CSS JavaScript
Latest commit a62c98d Nov 22, 2016 @itswadesh committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
api Integrated angularjs Mar 29, 2016
css Integrated angularjs Mar 29, 2016
README.md Update README.md 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

README.md

Send PDF document as email attachment using PHP

The full tutorial can be foud @ http://angularcode.com/send-pdf-attachment-email-using-php/

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('SENDGRID_USERNAME', "YOUR_SENDGRID_USERNAME");
  define('SENDGRID_PASSWORD', "YOUR_SENDGRID_PASSWORD");

  define('FROM', "demo@angularcode.com");
  define('TO', "support@codenx.com");
  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.