Mailto Syntax Error

Associate
Joined
3 Aug 2004
Posts
1,614
Location
Bendigo, Australia.
I have the following link, which according to my research, is correct but throws up an error. However, I may very well have missed something obvious:

Code:
<a href="mailto:[email protected]?subject=BME%20Sponsorship%20Opportunities&body=Please%20contact%20me%20regarding%20Bendigo%20Motorcycle%20Expo%20Sponsorship%20opportunities.%0A%0AMy%20contact%20details%20are%20as%20follows:%0A%0AName:%0A%0ATel:%0A%0AEmail:%0A%0AThanks.">

When the link is selected, the mail window opens with the correct details in the subject line and the body but the following within the 'To' email address field:

Code:
<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma' + 'il' + 'to'; var path = 'hr' + 'ef' + '='; var addy48579 = 'emailaddress' + '@'; addy48579 = addy48579 + 'gmail' + '.' + 'com'; document.write( '<a ' + path + '\'' + prefix + ':' + addy48579 + '\'>' ); document.write( addy48579 ); document.write( '<\/a>' ); //-->\n </script> <script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>

This is placed in an article in Joomla which accepts HTML but I'm not convinced it's related to the CMS.

If anyone can point me in the right direction, I would be very grateful.
 
Last edited:
That's not off-topic at all and a very good point. I think I'll just link it in to the contact form instead of this current over complication.

Thanks.
 
Back
Top Bottom