WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
Download link from e-mail (Read 160 times)
duck
YaBB Newbies
*
Offline



Posts: 19
Download link from e-mail
Feb 12th, 2019 at 11:08am
 
Hello,
It's possible download an e-mail link and save the link attachment on the disk or network?
for example we receive a link on body with pdf file and save on my network.

Thanks
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2322
The Netherlands
Re: Download link from e-mail
Reply #1 - Feb 13th, 2019 at 11:25am
 
Hello Duck,

Use this as the body for the email:
Code:
<html>
<body>
<p>
<a href="http://www.myserver.com/downloads/%WD_FILE_N%">click here for the new file</a>.
<p/>
</body>
</html>
 


If the file is not available "on the web", but only through ftp, use something like this:
Code:
<html>
<body>
<p>
<a href="ftp://ftp.myserver.com/root/downloads/%WD_FILE_N%">click here for the new file</a>.
<p/>
</body>
</html>
 



The %WD_FILE_N% will be replaced by just the name of the file that was detected (hello.pdf).
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1