[Webinar] Streamline your web hosting managementRegister Today


spawn mailto window - crossbrowser crossplatform (PC/MAC)

Posted on 2008-02-12
Medium Priority
Last Modified: 2008-03-12
I'm using the code below to spawn a mailto window (Outlook in my case). Problem is: Doesn't work in Firefox (MAC) or Safari. How can spawn a "mailto" window across PC/MAC platforms? And/or: Is there a better way for me to spawn the "mailto."

Note: I know I could do this with cgi forms, but for various reasons, I have to stick with native email apps in this case. Thanks for any help/suggestions.

<SCRIPT LANGUAGE=javascript TYPE=text/javascript>
window.open("mailto:Some Person [somebody@somewhere.com]&subject=Special%20Request&body=Please%20special%20order%20the%20item(s)%20listed%20below.%20I%20understand%20that%20I%20need%20to%20provide%20as%20much%20bibliographic%20information%20as%20possible%20(e.g.,%20author,%20title,%20publisher,%20publication%20date,%20ISBN)%20in%20order%20for%20you%20to%20obtain%20the%20item.")

Open in new window

Question by:GessWurker
LVL 29

Assisted Solution

by:Göran Andersson
Göran Andersson earned 400 total points
ID: 20880934
Could you specify "doesn't work"?

The mailto: protocol is hardly a new invention, it should be handled by any browser made in the last ten years... Is it some specific feature that doesn't work?

Accepted Solution

GessWurker earned 0 total points
ID: 20881661
I finally realized the problem was a pop-up blocker on the MAC I was using to test with. In Safari, the blocking was so subtle I didn't realize it was happening; in FireFox, I at least got a notice saying a new window had been blocked. I've decided to open the new "mailto" window via button click rather than as the page loads. Seems to improve the odds a good deal.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

611 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question