Send in email the link of a file in my database

Send in email the link of a file in my database

  

Hello everyone!


I have a question:

How can I send an email with the link of one uploaded file to the database? I need to send this file to a client (or the link to it, and that the better option) when it is inserted in the DB.

Can I create a link and put it in the email?

Thanks for your help!


Best regards,


Ricardo

Solution

Hi Ricardo,

You can create a page that receives like an ID and on preparation it gets the correct document from the database and downloads it.

You put the URL of this page on the email.

ID is and example since only ID isnt very secure. For example you can have a GUID associated to each document.

Cheers,

Marcelo

Solution

Marcelo Ferreira wrote:

Hi Ricardo,

You can create a page that receives like an ID and on preparation it gets the correct document from the database and downloads it.

You put the URL of this page on the email.

ID is and example since only ID isnt very secure. For example you can have a GUID associated to each document.

Cheers,

Marcelo

Excellent!


Thank you! That works!


Cheers,


Ricardo