include link to file in email to gmail user

I'm using php "mail" to create and send emails.
The body of the email includes a link to a file
ie.. <a href="http://www.site.com/filename.txt" />filename</a>

When Gmail recipients open the email, the link doesn't work.
Works fine in Outlook.

thanks
joomlaAsked:
Who is Participating?
 
n2fcConnect With a Mentor Commented:
Was this a typo?

Why do you have an extra "/" in the link?

Try:
 <a href="http://www.site.com/filename.txt">filename</a>
instead of:
 <a href="http://www.site.com/filename.txt" />filename</a>
0
 
joomlaAuthor Commented:
You're absolutely right
thanks for the heaps up
much appreciated
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.