Send email Error 11999


#1

Hi

after update AR or some patches we have problem to send pdf by mail.
I find some thread here but this is not solution for as we have 300 installations to manual change.

Here is error log:
2018-03-23 11:53:41.0733 [Error] pdfforge.PDFCreator.UI.Presentation.Assistants.Update.UpdateAssistant.UpdateThread: Exception in UpdateProcedure:
The remote server returned an error: (407) Proxy Authentication Required.
2018-03-23 11:53:47.6613 [Error] pdfforge.Mail.OutlookClient.ShowEmailClient: Error while starting Outlook System.Runtime.InteropServices.COMException (0x80004004): Operácia bola prerušená. (Exception from HRESULT: 0x80004004 (E_ABORT))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Dynamic.ComRuntimeHelpers.CheckThrowException(Int32 hresult, ExcepInfo& excepInfo, UInt32 argErr, String message)
at CallSite.Target(Closure , CallSite , ComObject )
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at pdfforge.Mail.OutlookClient.AddTextBody(Object mail, String content)
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at pdfforge.Mail.OutlookClient.ShowOutlook(Email email)
at pdfforge.Mail.OutlookClient.ShowEmailClient(Email email)
2018-03-23 11:53:47.6681 [Error] pdfforge.PDFCreator.Core.Workflow.JobRunner.RunJob: The job failed: An action failed. (MailClient_GenericError)
2018-03-23 11:53:47.7830 [Error] pdfforge.PDFCreator.Core.Workflow.ConversionWorkflow.RunWorkflow: Error MailClient_GenericError: An action failed.


#2

Hi,

do you have the latest version of PDFCreator installed (3.2.0)? Which version of Outlook/Windows are you using?
I can’t reproduce the error with Outlook 2016 + Windows 10.

Best regards

Robin


#3

Oh sorry i write this in fast.
We have last version of PDFCreator and Office 2010 with last updates.
We have Windows 7 x64.


#4

Hi,

I am afraid we don’t have any Office 2010 license for testing.
The error message seems to indicate a permission/security related issue, was the security for email increased in your environment recently?

Best regards

Robin


#5

Hi
I find there is settings in GPO.
This policy setting controls what happens when an untrusted program attempts to gain access to an Address Book using the Outlook object model.

Why this access to address book?

This is GPO about:
This policy setting controls what happens when an untrusted program attempts to gain access to an Address Book using the Outlook object model.

If you enable this policy setting, you can choose from four different options when an untrusted program attempts to programmatically access an Address Book using the Outlook object model:

  • Prompt user - Users are prompted to approve every access attempt.
  • Automatically approve - Outlook will automatically grant programmatic access requests from any program. This option can create a significant vulnerability, and is not recommended.
  • Automatically deny - Outlook will automatically deny programmatic access requests from any program.
  • Prompt user based on computer security - Outlook will rely on the setting in the “Programmatic Access” section of the Trust Center. This is the default behavior.

If you disable or do not configure this policy setting, when an untrusted application attempts to access the address book programmatically, Outlook relies on the setting configured in the “Programmatic Access” section of the Trust Center. This setting determines whether Outlook will warn users about programmatic access attempts:

  • Only when antivirus software is out of date or not running (the default setting)
  • Every time
  • Not at all. If the “Not at all” option is selected, Outlook will silently grant programmatic access to any program that requests it.

Note - This described default functionality assumes that you have not followed the recommendation to enable the “Outlook Security Mode” Group Policy setting to ensure that Outlook security settings are configured by Group Policy. If Group Policy security settings are used for Outlook, the “Programmatic Access” section of the Trust Center is not used. In this situation, the default is to prompt users based on computer security, which is the equivalent of the “Only when antivirus software is out of date or not running” option in the Trust Center, and the user experience is not affected.

Important: This policy setting only applies if the “Outlook Security Mode” policy setting under “Microsoft Outlook 2010\Security\Security Form Settings” is configured to “Use Outlook Security Group Policy.”

For more information about the Object Model Guard, see Security Behavior of Outlook


#6

Hi,

any kind of programmatic access seems to trigger this warning, even if nothing is actually set or read.
Our source is available at https://github.com/pdfforge/PDFCreator in case you’d like to have a look at how we interact with Outlook…
The MS docs miss the fact that Server OS don’t have a Trust Center and therefore Outlook will always complain, regardless of AV being present/ up to date. If sending an email is part of the default workflow, you could use the “run script” action and point it to the Outlook.exe with the additional parameter /a instead of using the “open email client” action.

Best regards

Robin