MS Word's Merge to email fails to send any message

NEW
Unassigned

Status

MailNews Core
Simple MAPI
14 years ago
3 years ago

People

(Reporter: Nathaniel W. Turner, Unassigned)

Tracking

(Blocks: 1 bug, {helpwanted})

Trunk
x86
Windows XP
helpwanted
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [enterprise])

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.8

When using Microsoft Word's mail merge functionality and selecting the Merge to
email option with Thunderbird as the default mail client, Thunderbird starts,
but does not open a message or do anything else.

Reproducible: Always
Steps to Reproduce:
1. Create a mail merge document in MS Word, select some data source
2. Choose Tools > Mail Merge... > Merge...
3. For Merge to, select Electronic mail, then click Setup... and choose email field
4. Choose the Merge button

Actual Results:  
If Thunderbird is not running, it starts normally.  Nothing else happens.
If it's not running, nothing happens.

Expected Results:  
Thunderbird should have told me that Word was attempting to send an email, and
asked me if that was OK.  After confirming, Thunderbird should have sent the
message.

Switching the default mail client back to Outlook Express makes email merges
work again.

This is a key requirement of our in-house CRM software, and we'd really like to
have it work with Thunderbird as the default mail client.

I suspect this is related to bug 252069, bug 259393, and bug 256597.
(Reporter)

Comment 1

14 years ago
I should mention that I have tested this with the latest release, and with
latest-trunk as of today.

Comment 2

14 years ago
does mail merge use MAPI? Can you get a mapi protocol log? In the control panel
| system |environment, set the following env vars:

set NSPR_LOG_MODULES=MAPI:5
set NSPR_LOG_FILE=c:\mapilog.txt

reboot, and retry? you should get a log file c:\mapilog.txt which shows what's
happening...

Comment 3

14 years ago
I have exactly the same problem with IMatch. This photo organizing program has a
function to send photos by email. When I select photo and use this function, it
launches thunderbird but then nothing happens.
I enabled the logging and here is my log.
I tried twice to send the photos.
0[274608]: CMapiImp::Login using flags 1
0[274608]: CMapiImp::Login succeeded
0[274608]: CMapiImp::Login using flags 1
0[274608]: CMapiImp::Login succeeded

Comment 4

14 years ago
I could reproduce the same behavior on windows 2003 using ms word 2003. And I
found that MAPIResolveName() needs to be implmented to solve this issue.

Ms word supports 3 formats for 'merge to e-mail' function - attachment,
plaintext and html. To work with html format, extended mapi client such as
outlook seems to be required. The simple mapi client such as thunderbird and
outlook express are supposed to work with the other formats (see MS KB article
279193). However, as reported in this issue, thunderbird does not work with even
those formats.

When ms word is working with outlook express, it loads msoe.dll and calls
MAPIResolveName() before calling MAPISendMail(). This could be discovered using
dll call trace tool (Developer Playground, http://www.blunck.info/dp.html). And
this could be a problem for thunderbird because it does not implement
MAPIResolveName(). To make sure my assumption, I added following adhoc test code
and mail merge worked fine.

ULONG FAR PASCAL MAPIResolveName(...)
{
    //return MAPI_E_FAILURE;
    (*lppRecip) = (lpMapiRecipDesc FAR)malloc(sizeof(MapiRecipDesc));
    (*lppRecip)->ulRecipClass = 1;
    (*lppRecip)->lpszName = "Jeongkyu Kim";
    (*lppRecip)->lpszAddress = "SMTP:jeongkyu.kim@gmail.com";
    (*lppRecip)->ulEIDSize = 0;
    (*lppRecip)->lpEntryID = 0;

    return SUCCESS_SUCCESS;
}

FYI, I found two issues for asking implementation of MAPIResolveName() - bug
244222 and bug 259549. I hope my research helps QA to confirm this issue.

Comment 5

13 years ago
When I use MAPI service with Thunderbird 1.0.2, I got the following error:

ULONG nError = MAPIResolveName(hSession, 0, "name@test1.test.com.br", 0, 0, 
lppRecip);

nError returns MAPI_E_FAILURE (2)

When I use this function with Microsoft Outlook 2000 (with ServicePack 3) or
Microsoft OutlookExpress 6 (6.00.2900.2180) the functions works fine.

Thank you for any information/help

Paulo

Comment 6

13 years ago
should be dependent on bug#244222 MAPIResolveName implementation bug?

Comment 7

12 years ago
Great debug work done so far! I am hoping this gets fixed soon.

Comment 8

12 years ago
If anyone feels like implenting MapiResolveName, we'd be interested in a patch. I'd be willing to help with advice as well.
Keywords: helpwanted
QA Contact: general

Updated

11 years ago
Depends on: 244222

Updated

10 years ago
Assignee: mscott → nobody

Updated

9 years ago
Whiteboard: [enterprise]

Updated

7 years ago
Blocks: 564148

Comment 9

7 years ago
Bug 244222 is almost done. Can anybody test this with nightly build after the patch is checked in?
Component: General → Simple MAPI
Product: Thunderbird → MailNews Core
QA Contact: general → simple-mapi
Version: unspecified → Trunk
(In reply to Jeongkyu Kim from comment #4)
> I could reproduce the same behavior on windows 2003 using ms word 2003. And I
> found that MAPIResolveName() needs to be implmented to solve this issue.

This is fixed can anyone try a build from http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/ and let us know if the issue is solved or not ?

Comment 11

6 years ago
Has this been resolved? When I try to send a mailmerge document from MS Word through Thunderbird, nothing happens.

Comment 12

6 years ago
If bug 244222 really fixed this, then it should start working since Thunderbird 13. Do you have that version?

Comment 13

6 years ago
(In reply to :aceman from comment #12)
> If bug 244222 really fixed this, then it should start working since
> Thunderbird 13. Do you have that version?

Nope! I'm on TB 12.0.1 My updates for TB are automatic and I have not seem any upgrade to TB 13.

Comment 14

6 years ago
Then check your settings, TB13 is out for about 2 weeks and there is already 13.0.1.

Comment 15

6 years ago
(In reply to :aceman from comment #14)
> Then check your settings, TB13 is out for about 2 weeks and there is already
> 13.0.1.

Ok! I'm doing an update. I will post my findings. Thanks a whole bunch!

Comment 16

6 years ago
(In reply to Paula Thayrow from comment #15)
> (In reply to :aceman from comment #14)
> > Then check your settings, TB13 is out for about 2 weeks and there is already
> > 13.0.1.
> 
> Ok! I'm doing an update. I will post my findings. Thanks a whole bunch!

Findings: 
I now have TB 13. I have set TB as default mail client from both TB and on Control Panel. My MS Word's database is in MS Word (a table in another document - maybe I should move this to Excel). TB has the Merge Add-on. But nope! The mail-merge from MS Word still has no effect. No action anywhere, not even when I manually open TB.

Comment 17

6 years ago
What is your Windows version and Outlook version?
I think I heard MS drops Simple MAPI from some new Windows version?

Comment 18

6 years ago
(In reply to :aceman from comment #17)
> What is your Windows version and Outlook version?
> I think I heard MS drops Simple MAPI from some new Windows version?

I'm on Windows XP. I'm not a techie so I was hoping there was something already done default in MS Word and TB.

Comment 19

6 years ago
(In reply to Paula Thayrow from comment #18)
> (In reply to :aceman from comment #17)
> > What is your Windows version and Outlook version?
> > I think I heard MS drops Simple MAPI from some new Windows version?
> 
> I'm on Windows XP. I'm not a techie so I was hoping there was something
> already done default in MS Word and TB.

Sorry! And MS Office 2007

Comment 20

6 years ago
(In reply to :aceman from comment #17)
> What is your Windows version and Outlook version?
> I think I heard MS drops Simple MAPI from some new Windows version?

Ok! Some progress! Moved data to Excel and made mail as plain text and that worked. Half exciting! Problem: I have several email accounts, so TB sent out by default on my first account. I think I can muck around with the settings and see what I get. I'll also play around with the text and HTML options and see what happens. Will post findings tomorrow. Lovely! Thanks! Great help!

Comment 21

6 years ago
Great!
Thunderbird has one account set as "default". Maybe you can use that to say which one it should use for the MAPI connection.

Comment 22

6 years ago
I did get to send email from WORD through TB, but it only sends out text files. So that wasn't super helpful as a default setting. If I could do HTML, that would be fab. Thanks everyone! :-)

Comment 23

6 years ago
Maybe "Simple MAPI" is not enough for HTML but Tb does not support "Extended MAPI". But I am no expert on this.
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
You need to log in before you can comment on or make changes to this bug.