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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.