 |
 |
Triggering E-mail
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status:
Offline
|
|
I know I can trigger a new e-mail message when someone clicks on a link with this code:
Code:
<p><a href="mailto:someone@domain.com">Click here to send an e-mail</a></p>
If someone clicks there, a new e-mail message with the recipient "someone@domain.com" already filled in pops up in the person's e-mail client.
My questions are:
- Are there any e-mail clients for which this technique doesn't work?
- What if there is no default e-mail client?
- What if all e-mail programs have been removed from that particular system?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2002
Location: Red Bluff, CA
Status:
Offline
|
|
Originally Posted by selowitch
I know I can trigger a new e-mail message when someone clicks on a link with this code:
Code:
<p><a href="mailto:someone@domain.com">Click here to send an e-mail</a></p>
If someone clicks there, a new e-mail message with the recipient "someone@domain.com" already filled in pops up in the person's e-mail client.
My questions are:
- Are there any e-mail clients for which this technique doesn't work?
- What if there is no default e-mail client?
- What if all e-mail programs have been removed from that particular system?
This is pretty generic ( http://www.sonoma.edu/it/websupport/faq/mailto-gen.html) but it seems to support that there are cases when a mailto link won't work. Personally I find mailto links irritating and I agree with their method of making the linked text the e-mail address so that visitors have the option to copy and paste the e-mail address rather clicking the link.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status:
Offline
|
|
I understand what you mean, but in this case it's quite useful as I also pass some info to the Subject line that is dynamic and quite convenient IMO: Check it out.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2002
Location: Red Bluff, CA
Status:
Offline
|
|
Originally Posted by selowitch
I understand what you mean, but in this case it's quite useful as I also pass some info to the Subject line that is dynamic and quite convenient IMO: Check it out.
ah I see, in the case where you want autofill the message subject and body that is indeed quite useful.
One thing notice that may be a problem, is instead of using spaces in your mailto links, use the html entity for a space, %20
So this: <a href="mailto:fineart@barridoff.com?subject=Lot 7 (Opie)&body=I would like to make an offer on this lot.">Make an offer on this lot</a>
Would become this: <a href="mailto:fineart@barridoff.com?subject=Lot%207 %20(Opie)&body=I%20would%20like%20to%20make an%20offer%20on%20this%20lot.">Make an offer on this lot</a>
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status:
Offline
|
|
Originally Posted by darkcore
One thing notice that may be a problem, is instead of using spaces in your mailto links, use the html entity for a space, %20
You're absolutely correct. Thank you! I always manage to forget something, it seems. :-) I just re-did it per your suggestion.
It sure does make the status bar message look ugly, though. I think it's worh it, however, so good call on your part.
(Last edited by selowitch; Aug 12, 2005 at 03:10 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Originally Posted by selowitch
It sure does make the status bar message look ugly, though. I think it's worh it, however, so good call on your part.
<a title="Make an offer on Lot 7" href="mailto:fineart@barridoff.com?subject=Lot%207 %20(Op ie)&body=I%20would%20like%20to%20make an%20offer%20on%20this%20lot.">
That'll fix it.
|
|
Computer thez nohhh...
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status:
Offline
|
|
Well, although this changes what pops up (at least in Firefox it does), it does not change the content of the status bar (bottom of the window) which was the object of my complaint. See what I mean?
(Last edited by selowitch; Aug 12, 2005 at 07:43 PM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|