[go: nahoru, domu]

Open Bug 161586 Opened 22 years ago Updated 2 years ago

ShellExecute(0,0,"mailto:test@server.com",0,0,SW_SHOWNORMAL); doesn't work.

Categories

(MailNews Core :: Simple MAPI, enhancement)

x86
Windows XP
enhancement

Tracking

(Not tracked)

People

(Reporter: adam, Unassigned)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530
BuildID:    2002053012

ShellExecute(0,0,"mailto:test@server.com",0,0,SW_SHOWNORMAL); does not open
mozilla mail. It opens <shiver> Outlook.
Start->Run: mailto:test@server.com does the same thing.
This should just be a registry entry on installatition. (I think)
what is your setting in :
Edit\preferences\Mail&Newsgroups\[x] Use Mozilla as default Mail application

(you must run Mozilla as administrator )
That setting is on (checked).
Confirming on BuildID 2002080508 on WinXP.

Simple MAPI?
Status: UNCONFIRMED → NEW
Ever confirmed: true
over to simple MAPI
Assignee: ducarroz → rdayal
Component: Composition → Simple MAPI
QA Contact: esther → trix
QA Contact: trix → yulian
QA Contact: yulian → stephend
Personal opinion: this is a bug, not an enhancement since that option is present
in Prefs and it adds to IE's e-mail program list.

Here is an e-mail that led me to do a search for ShellExecute:
From John Schracher of Bugtoaster.com:

Hello Brant-

My guess is that Netscape did not properly set all aspects of the
pluggable "MailTo" protocol in the Windows registry and it's still
registered to Outlook Express. Netscape has a history of not properly
using the Windows registry.


Here's the nitty-gritty details:

To launch the email client we use the following code snippet

--- Begin Snippet ---

// let Windows (ShellExecute API) do its magic
LPCTSTR pszUrl = "mailto:clientsupport@bugtoaster.com";
::ShellExecute( NULL, "open", pszUrl, NULL, NULL, SW_NORMAL ));

--- End Snippet ---

The ShellExecute() API looks at the pluggable "MailTo" protocol in the
Windows registry under:

"HKEY_CLASSES_ROOT\mailto\shell\open\command"

...and launches the appropriate command string.

The registry points to Outlook Express and it should point to Mozilla.

I would think this would be a rather simple fix and many people would benefit so
nominating as a blocker.
URL: n/a
Flags: blocking1.3b?
not gonna happen this late in the cycle. maybe someone will pick this up for 1.4.
Flags: blocking1.3b? → blocking1.3b-
This bug might be related to bug 207974?

Rainer

Product: MailNews → Core
(In reply to comment #7)
> This bug might be related to bug 207974?

It looks like it might even be a duplicate...
Assignee: rdayal → nobody
QA Contact: stephend → simple-mapi
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.