Using Email "mailto:" Links

Post your Click counter digestion problems here
Post Reply
dave0judy
Posts: 2
Joined: Fri Feb 12, 2010 5:37 am

Using Email "mailto:" Links

Post by dave0judy »

Script URL: http://www.independent-rescue-adoption.com/ccount/
Version of script: 1.2
Hosting company: F5Hosting.com
URL of phpinfo.php: 5.2.6
URL of session_test.php:
What terms did you try when SEARCHING for a solution: email link ccount

Write your message below:

I have all regular links working great. However, I am have a minor problem when using an email "mailto:" link.

1. If I use the full url to the email link (http://www.domain.com/index.php/mailto:email@domain.com), I get a forbidden error, along with my email client not loading.

2. If I use just the mailto:email@domain.com link, I does bring up the email client as desired, however the browser window displayed behind it is blank. Once the email is sent, you have to use your back button to return to the previous page. The count does register, however having to then use the back button to return to my site is problematic.

Is there any code that can be added to the plain email link that will re-direct it to an actual page url, or any other work-around?

Great script!!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Unfortunately different browsers/OS settings can handle e-mail links differently so CCount can't be used reliably with e-mails.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dave0judy
Posts: 2
Joined: Fri Feb 12, 2010 5:37 am

Too Bad

Post by dave0judy »

That's too bad, as I tried your script for the sole purpose of tracking email links. I already can track regular links (internal), through Google Analytic's Top Content report.

Do you have any ideas on a way to track clicking on an email link that opens a local email client? :(
Post Reply