Zubrag.com
May 20, 2012, 11:36:37 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to download an article to a given email address  (Read 2789 times)
sugathonline
Newbie
*
Posts: 2


« on: September 20, 2007, 01:20:36 am »

Hey

I want to develop a dynamic downloader.That means,in a web page there is an article.so if user read that article and user might want to download that article to his mailbox.Any of you guys having that kind of cording.


cheers

regards

SUGZ

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: September 20, 2007, 03:05:05 am »

Hi. You do not need a download script for this. You'll need email script. Unfortunately we do not have such script.

Maybe following script will do what you need. I'm not familiar with it, but looks like you can put url instead of the file name.
http://www.codewalkers.com/c/a/Email-Code/PHP-Email-Attachment-v1/
Logged
sugathonline
Newbie
*
Posts: 2


« Reply #2 on: September 20, 2007, 08:04:03 pm »

Hei

   I am developing following typed system.
         http://www.mailzou.com/get.php?R=13965

But the code you gave me seems to be ok.instead of giving file path in manually , how can i set up it to browes the file and attached it to a email just like normally what we have experenced.

cheers
Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #3 on: September 21, 2007, 06:15:55 am »

I think you can change this

$fileatt = ""; // Path to the file

to this

$fileatt = $_GET['filename']; // Path to the file

and then run that script and pass parameters. Like this: scriptname.php?filename=path-to-file-here
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC