I've been using Ruby on Rails at work for years. My job changed. PHP server inherited. Have extended it to include Laravel. Have just started learning Laravel.
What I need to get done, right now, is I need to start sending automated scheduled emails, with graph images embedded in the email HTML body. I've been doing a lot of searches and this seems like the path to follow for sending automated emails (without being able to spend money on something like FusionCharts for this):
- Use Google Charts Printing PNG Charts to save graphs as PNG images on the server
- Use Pears Mail_Mime::addHTMLImage() function to embed the saved graph pngs into (I've never used Pear before).
- Delete images files after email is sent
What I'm looking for is some advice on exactly what path I should follow. What I'd really love to find is some complete sample code that's a working example of saving a chart (google or other) as an image file and then embedding that file into an email HTML body.
Thanks for any help. Since I'm just barely starting to learn Laravel, I'm not sure if Laravel has anything that would make this easier than plain PHP.