Solved

Attach/export HTTP page to email

Posted on 2011-09-27
7
195 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
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Industry Leaders: 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!

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

696 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