Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Triggering E-mail

Triggering E-mail
Thread Tools
Mac Elite
Join Date: Nov 2003
Location: Rockville, MD
Status: Offline
Reply With Quote
Aug 11, 2005, 09:32 PM
 
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:
  1. Are there any e-mail clients for which this technique doesn't work?
  2. What if there is no default e-mail client?
  3. 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
Reply With Quote
Aug 12, 2005, 02:24 PM
 
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:
  1. Are there any e-mail clients for which this technique doesn't work?
  2. What if there is no default e-mail client?
  3. 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
Reply With Quote
Aug 12, 2005, 02:37 PM
 
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
Reply With Quote
Aug 12, 2005, 02:59 PM
 
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
Reply With Quote
Aug 12, 2005, 03:03 PM
 
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
Reply With Quote
Aug 12, 2005, 07:22 PM
 
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
Reply With Quote
Aug 12, 2005, 07:32 PM
 
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. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:25 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2