Forums

Howto: Email File Links Only

aboutimage 31 Jul, 2009
:?: My client uses an Exchange server that, for some reason, strips the attachments from Chronoforms emails. Is there a way I can set up the email template so that instead of including an attachment to the file, it simply includes a link to the file? All the files get uploaded to a "ftp_files" directory under wwwroot, so I'm guessing this should be doable. How do I code it out? 🤨
GreyHead 31 Jul, 2009
Hi aboutimage,

The attachments info is held in an array which you can access using $MyUploads->attachments:
$MyUploads =& CFUploads::getInstance($MyForm->formrow->id);
$MyUploads->attachments;

Bob
aboutimage 31 Jul, 2009
Ah, thank you!

As it happens, I may have figured out what appears to be a simple, but functional, solution:

At the end of the email template, I have added the following code:

http://servername/ftp_folder/{file1}


May not be the most eloquent solution, but it appears to work!
GreyHead 31 Jul, 2009
Hi aboutimage,

That looks good to me.

Bob
This topic is locked and no more replies can be posted.