jankeirse / tvhgooglemapi

Simplemapi provider for Google Mail (both gmail and google apps)
http://jankeirse.github.io/tvhgooglemapi/
Apache License 2.0
20 stars 10 forks source link

MAPI Error in Word #24

Closed GoogleCodeExporter closed 4 years ago

GoogleCodeExporter commented 9 years ago
When I try to send a file in Word 2007, I get "Could not send your mail, 
exitcode of gmaildrafter was 2"

What is the expected output? What do you see instead?
A draft e-mail with the file attached.

What version of the product are you using? On what operating system?
0.82, Win7 Pro x64 SP1, Chrome 37.0.2062.120 m.

Please provide any additional information below.
I've configured the gmaildrafter with my user name and an app-specific 
password.  If I launch the jar file it creates the draft message.

Original issue reported on code.google.com by matthew....@crestwood.on.ca on 22 Sep 2014 at 6:39

Attachments:

GoogleCodeExporter commented 9 years ago
Interesting, that indicates an IO error. What was the filename of the word 
document? 
You could try to find more information by creating a file 
c:\windows\temp\debuggmaildrafter.txt and then try again. Before gmaildrafter 
is launched you will get a message 'Going to execute the last command in 
c:\windows\temp\debuggmaildrafter.txt.'. Leave this message open (do not click 
ok)! 
Copy this command line (the last line of debuggmaildrafter.txt) to the 
clipboard.
Now open dos and execute the command line there. It should give you an error 
message like: IO Exception + some more information. That 'more information' may 
explain the problem. 

Original comment by jan.kei...@tvh.com on 23 Sep 2014 at 7:01

GoogleCodeExporter commented 9 years ago
The name of the Word document is Clubs and Teams Letter.docx

If I paste the command into a DOS window, the command executes successfully.  I 
am running Symantec Endpoint security 12 on my desktop if that helps.

Here is the code:
c:\windows\system32\cmd.exe  /C java.exe -Dfile.encoding=UTF8 -jar "C:\Program 
Files (x86)\tvhgooglemapi\gmaildrafter.jar"  -a 
"C:\Users\mdavid\AppData\Local\Microsoft\Windows\Temporary Internet 
Files\Content.Word\Clubs and Teams Letter.docx" -n "Clubs and Teams 
Letter.docx" -b "C:\Users\mdavid\AppData\Local\Temp\tvh4743.tmp" -d 
--subjectfile "C:\Users\mdavid\AppData\Local\Temp\tvh4744.tmp" 
--deletesubjectfile

Original comment by matthew....@crestwood.on.ca on 23 Sep 2014 at 12:15

GoogleCodeExporter commented 9 years ago
I'm afraid I don't see an obvious cause. Does it work when right clicking on a 
file in explorer and clicking copy to -> attach to email (translated from a 
dutch windows version, so the wording may not be exactly the same?)
Symantec Endpoint Security works fine with tvhgoogleampi for me on the same 
windows version.
I'd try rebooting your computer once if you never do that and maybe save the 
file in another folder, but the chances it helps are rather small.

Original comment by jan.kei...@tvh.com on 25 Sep 2014 at 9:27

GoogleCodeExporter commented 9 years ago
I tried using the Send Mail function from Explorer and I got the same error.

Original comment by matthew....@crestwood.on.ca on 2 Oct 2014 at 6:42

GoogleCodeExporter commented 9 years ago
I have the same issue and when I run the command from the commandline it also 
works. I am running Windows 8, anymore suggestions?

Original comment by jonathan...@nwn.co.uk on 28 Nov 2014 at 2:25

GoogleCodeExporter commented 9 years ago
Issue 30 has been merged into this issue.

Original comment by jan.kei...@tvh.com on 19 Jan 2015 at 8:29