Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Using PHP to send a mailto: URL
- Joseph Ellis
August 14, 2004, 2:01 am
rate this thread
I have as part of my family website a list of links to family members'
e-mail addresses. So far I've just provided links in the form of
href="mailto:firstname.lastname@example.org". But now I'd like to rid my HTML of
e-mail addresses and use PHP to pass a mailto: link to the browser,
something like, href="email.php?person=grandma".
Then in email.php I'd have something like (paraphrased), "if $person
== 'grandma' then mailto:email@example.com.
I just don't know how to send that mailto: link to the browser.
Do you? Could you tell me please?
- Janwillem Borleffs
August 14, 2004, 6:28 pm
- Sebastian Lauwers
August 14, 2004, 10:54 pm
Re: Using PHP to send a mailto: URL
Indeed, this would allow much more control over the mail, and btw, also
your granny won't have her email adress caught by spam bots.
The most likely way for the world to be destroyed,
most experts agree, is by accident.
That's where we come in; we're computer professionals.
We cause accidents.