Is it possible to have an email address stored in mysql to be inserted into the To: field when a visitor clicks on a mailto: link? i.e php replaces the xxxx@xxx.xxx in
<a href="mailto:xxxx@xxx.xxx"> with the real email address from mysql?
SjrH:
Are you trying to use mailto: links on a website without posting email addresses to that site? If so, you can't do that -- a mailto: link is handled by software on the client side without further interaction with your web server, so the address must be there.
This is different from obfuscating a URL on a site by having [ignore]
[/ignore], because the web browser must continue to interact with the web server. This puts the web server in a position to manipulate data without the knowledge of the browser. Otherwise it would be like trying obfuscate links to URLs that reside on browsers outside your control.
If you do want to allow users to email people in your organization without exposing email addresses, you're going to have to provide a web form on your site which submits data to a mailing script on your site.
Just be careful to not use any user-supplied data as part of an address. You could end up with an open mail relay otherwise.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.