Jump to content

sending a link


Scud

Recommended Posts

Hi guys;

 

I have created a php form whereby users have the ability to upload a file to the server. After they click the submit button the form input is sent in an email with a path to the uploaded file. Whilst the email provides the direct path to the file it is not linkable. How do i do this. The code which sets the path is;

 

        $body .= "\nPath: http://xxx/xxx/xxx/xxx/$target";

 

How can i change it so the path becomes a link in the email?

Link to comment
https://forums.phpfreaks.com/topic/249616-sending-a-link/
Share on other sites

most emails will detect that anything starting with http:// is actually a link, and they should do this automatically for you. You can however sent html emails where you would add the html code to link it:

$body .= "\nPath: <a href=\"http://xxx/xxx/xxx/xxx/$target\">http://xxx/xxx/xxx/xxx/$target</a>";

 

hop this helps

Link to comment
https://forums.phpfreaks.com/topic/249616-sending-a-link/#findComment-1281726
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.