Solved

Attach/export HTTP page to email

Posted on 2011-09-27
7
193 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Expert Comment

by:user_n
ID: 36712080
0
 
LVL 108

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
TCPDF HTML Table of Contents how can I create leading dots 7 35
Download a website to hdd 2 49
MySQL Grouping 2 21
unset shopping cart session 15 29
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn how to count occurrences of each item in an array.

919 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now