When a user clicks on the "send email" button, their default email application opens with the subject line: Request Information".
Can anyone tell me why this "mailto:" code will not work in IE7/8? It works correctly in FF, Chrome and Safari. I don't want to have to wrap up my image in an anchor tag, unless there's no other way.
HTML
<a href="mailto:info@mydomain.com?subject=Request Information" class="info-main">Send email</a>
CSS
.info-main {
background-image:url('/i/info_email_button.png') no-repeat;
display:block;
height:123px;
width:24px;
text-indent:-9999px;
}
Thanks!
Use Url-Encode for spaces and special characters, that means:
<a href="mailto:info@mydomain.com?subject=Request%20Information" class="info-main">Send email</a>