Menu

#610 MAPI Error Send to Email

6.X
open
nobody
None
6.1.0
Support
Medium
WIA
2020-04-04
2019-05-30
No

Having an issue after scanning sending to email
Using outlook 2016 x64
Error is: error occurred while trying to send an email
Tehnical details:
MAPI returned error code: Failure

Discussion

  • Boyd Gosserand

    Boyd Gosserand - 2019-05-31

    no that version works fine.

     
  • Ronski

    Ronski - 2019-06-04

    I have exactly the same problem, upgraded yesterday from 5.8.2 to 6.1.0.21310, emailing was working on 5.8.2 now it's not.

    Using Outlook 2010 so selected Outlook as the email option, when I try to email a PDF I get the same error as the Boyd.

    I also have an Email PDF Progress box that says "Uploading email..." surely it shouldn't be uploading the email when the client is local?

    PS. Could you add the option to allow us to enter the attachment name each time we email it please?

     
  • SelfMan

    SelfMan - 2019-06-06

    Hey guys, in this case #MeToo.
    Windows 10 Pro #1809 x64 with MS Office 2010 x86. TheUI language and the locals are set to Slovak.
    Naps2 version 5.8.2 works just fine, the new 6.1.0 errors out with "MAPI returned error code: Failure". NAPS2 itself does not crash during the action nor after that.

     
  • Ronski

    Ronski - 2019-06-10

    I've just noticed I installed one of the portable Beta versions (6.04.21010) sometime ago and emailing is working in that (I had to select my client), hopefully that will help you narrow down the issue.

    Edit: Just installed 6.04.22698 (6.0b4) and that emails OK.

     

    Last edit: Ronski 2019-06-10
  • SelfMan

    SelfMan - 2019-06-10

    In my case, the client was already selected. I also made sure that the setting sticks by selecting a different option and reselecting Outlook. The question is where the error comes from MAPI (Messaging Application Programming Interface ) or SimpleMAPI as the 1st is a Outlook thing where the 2nd can be user by other mail clients.

     
  • SelfMan

    SelfMan - 2019-06-17

    sorry, I've mixed up the tickets.
    Yet still, the 6.1.1 does not allow me to choose a email provider. I get a blankwindow which is resizeable to side.

     

    Last edit: SelfMan 2019-06-17
  • Ronski

    Ronski - 2019-06-17

    I tried the portable version first, selected my mail client and it worked perfectly, apart from the mail window didn't come to the foreground.

    Installed the updated version and that worked perfectly, seems to have fixed the issue for me, thank you very much Ben.

     
  • Boyd Gosserand

    Boyd Gosserand - 2019-06-17

    Getting this now

    System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
    System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
    at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
    at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(EmailMessage message)
    at NAPS2.Worker.WorkerService.SendMapiEmail(EmailMessage message)
    at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)).

     
    • Boyd Gosserand

      Boyd Gosserand - 2019-07-22

      Will this be resolved in the next release?

       
  • Boyd Gosserand

    Boyd Gosserand - 2019-07-24

    When I ran it, I got about 6 emails that said hello.
    Then I got this

    UserAbort 64 M mapi32.dll
    UserAbort 64 W mapi32.dll
    UserAbort 64 M mapi32.dll
    UserAbort 64 W mapi32.dll
    FL 32 M mapi32.dll
    UserAbort 32 W mapi32.dll
    FL 32 M mapi32.dll
    UserAbort 32 W mapi32.dll

     
  • Boyd Gosserand

    Boyd Gosserand - 2019-08-05

    i'm getting this error now
    am I the only one with this error?

    System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
    System.Exception: Could not load dll for email: C:\PROGRA~1\MICROS~1\Office16\OLMAPI32.DLL
    at NAPS2.ImportExport.Email.Mapi.SystemEmailClients.GetDelegate(String clientName, Boolean& unicode)
    at NAPS2.ImportExport.Email.Mapi.MapiWrapper.SendEmail(String clientName, EmailMessage message)
    at NAPS2.Worker.WorkerService.SendMapiEmail(String clientName, EmailMessage message)
    at SyncInvokeSendMapiEmail(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContext...).

     
  • Boyd Gosserand

    Boyd Gosserand - 2019-11-05

    Do you know if this will be fixed in the next version?
    Is there anything I can do to help?

     
  • Jamie Manley

    Jamie Manley - 2019-11-12

    If I run 5.8.2 portable, I can click Email PDF and it launches the default mail program. I tried 6.0b1 when "choose email provider" was first added, and every version after that just gives me an empty box for the Choose Email Provider. No errors, just no options to choose. I even let it sit there for a looooong time. No option for Gmail, Hotmail, locally installed Outlook, nothing.

    I've tried with Outlook 2016 (32 bit) and Outlook 2019 (32 bit) on Windows 10 x64 1909 (also had the problem before upgrading to 1909 today). Every version I've tried (portable or installed) from 6.0b1 -> 6.1.2.225834

     
  • Boyd Gosserand

    Boyd Gosserand - 2019-11-12

    Jamie, I believe this is a different issue you're having. You might want to open a new ticket.
    We are having issues with a MAPI error.

     
  • Boyd Gosserand

    Boyd Gosserand - 2019-11-12

    I do have an update on this. It's not the code.
    If you download the source code and complie NAPS for a x64 processor, everything works fine.

    So that means if you have Office 64bit installed you need NAPS x64.
    The x32 version will not work.

     
    • Jamie Manley

      Jamie Manley - 2019-11-12

      I use 32bit TWAIN drivers for Citrix and 32 bit Office for plugins, so the 32bit NAPS is what I need to make everything work together. I haven't tried compiling from source. I'm running the precompiled 32 bit.

      I thought the two issues may have been related, but I'll go ahead and open another ticket.

       
    • Xander Desautels

      Boyd, I realise this is an oldish thread, but would you mind sharing your x64 compiled code? I have the same problem (NAPS2 32-bit but Outlook 64-bit) but I have no idea how to compile a NAPS x64 version myself. Maybe others in the community may be helped as well?

      Thanks a lot in advance!

       

Log in to post a comment.

MongoDB Logo MongoDB