473,396 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is this possible ?(pdf with mail function)

35
So basically i have:
a form.php file where a user submit some content , this form.php points to pdf.php file wich shows the content submitted in a pdf file format, so at the same time the pdf appears on this page (pdf.php) i would like to send an email with in attachment the pdf that was created but is this possible ? do i need to use something like OB ?(output buffering control)
thanks
Oct 24 '09 #1
5 1791
Markus
6,050 Expert 4TB
@arty
You don't need output buffering. Just do it like this:

Expand|Select|Wrap|Line Numbers
  1. $email->send();
  2.  
  3. $pdf->output();
  4.  
Simple.

Mark.

P.S. That is pseudo-code.
Oct 24 '09 #2
arty
35
ok, but how are you going to attach the pdf if it's not yet displayed or generated ?
Oct 25 '09 #3
TheServant
1,168 Expert 1GB
What about outputting to a file, sending the email, and then redirecting the user to the document?
Oct 25 '09 #4
arty
35
yes i outputted to a file on the server and grab the pdf with a fread and added an iframe to the page so the user can see the resulting pdf and has the option of sending it.
thanks for your reply.
Oct 26 '09 #5
TheServant
1,168 Expert 1GB
Don't like the iframe solution, but glad you got it working.
Oct 26 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: MLH | last post by:
I print to a device that creates a PDF. Knowing the filename, how can I then embed the PDF into the body text of an OutLook Express outbound email & send to a specified address in a table? I want...
3
by: Michael Harris | last post by:
Access XP WinXP Adobe Acrobat 5.0 I'm playing with Keri Hardwick's "Save a report's output as a PDF file" and most of it still works. The problem is the ChangePdfFileName is not changing the...
0
by: Wouter | last post by:
Probably just a minor detail, because I almost got it working. Creating the PDF file goes fine, thanks to all the bas****-files from http://www.mvps.org/access/. Also the mail functionality goes...
6
by: Kenneth P | last post by:
Hi, It's rather common today, to see a PDF opening within a new Internet page. But how is it done in ASP.NET, VS2003? I'd rather use it as a way to invoice electronically. You email your...
13
by: Alison Givens | last post by:
....... that nobody knows the answer. I can't imagine that I am the only one that uses parameters in CR. So, my question again: I have the following problem. (VB.NET 2003 with CR) I have a...
1
by: xian2 | last post by:
Hi All, I have been using this guide http://www.compasscomputing.co.uk/code/AcceesReportsToPDFandEmail.htm to create a command button that automatically saves and e-mails your report and have...
3
by: Greg Guarino | last post by:
Let me first apologize for the myriad bits of ignorance that are to follow. Our company does consulting work. We have found over the years that it is best to have an agreement in writing, both...
2
by: damezumari | last post by:
I am trying to send a pdf file as an attachment with the mail() function. Unfortunately, the pdf file does not show up as an attachment. I get its coding as text along with this: MIME-Version:...
2
by: Kirk Strauser | last post by:
Short question: Is there a good library for generating HTML-style tables with the equivalent of colspans, automatically sized columns, etc. that can render directly to PDF? Longer question: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.