Solved

Attach/export HTTP page to email

Posted on 2011-09-27
7
196 Views
Last Modified: 2012-05-12
I have a PHP which is called quite regularly. It provides additional info regarding rows of data on a page. One of the requests is to be able to email this data. (And email this data for multiple rows as a single attachement.)

My logic says I need to call the page on the server (bypassing authentication), render the php to html. Save the output to an HTML file. Then attach and send email. If multiple rows are ticked, it would join the HTML on rendering.

Am I missing anything? Any tips/suggestions?
0
Comment
Question by:xpandit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 9

Expert Comment

by:user_n
ID: 36711385
0
 

Author Comment

by:xpandit
ID: 36711690
Am I missing something in the link? Mime covers how I would attach the export, but I would surely still need to generate the file? Is my logic in my original question correct?
0
 
LVL 9

Expert Comment

by:user_n
ID: 36712074
I have worked with sip packets and mime there, and I have no much experience with html mime. Some more info
http://tools.ietf.org/html/rfc2045
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:user_n
ID: 36712080
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 36713905
Please show us the inputs you have and the outputs you want.  I am sure we can show you the code to bridge the gap once we know those things.  Thanks, ~Ray
0
 

Accepted Solution

by:
xpandit earned 0 total points
ID: 36899640
I used CURL to save the html output to a temporary file. I then atatched it to an emal. My logic was correct.
0
 

Author Closing Comment

by:xpandit
ID: 36929320
It worked.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article discusses how to implement server side field validation and display customized error messages to the client.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question