Forum Discussion

HDG's avatar
HDG
Experienced Cover User
2 months ago

Errors Emailing out of MYOB

I'm having extreme issues trying to email from my outlook. I've tried numerous different workarounds but it still isn't working. The email goes to outlook but the invoice attachment isn't on the email and then i get an error saying something went wrong and then i get this in my emails

  

*** Can you help us? ***

 

To help us investigate what went wrong, please tell us what you were doing when this error occurred:

(For example, which window were you in and what were you trying to do?)

 

AccountRight Application Error Report

=====================================

Application Version: 2024.4.1.5

Application File Version: 2024.4.1.12

Incident Id: c837e735-3918-4d71-bb09-19420edd741d

Time: Thursday, 13 June 2024 4:25:11 PM

 

Code:

System.UnauthorizedAccessException

 

 

Message:

You don't have appropriate permission to perform this operation.

 

 

Stack Trace

----------------------------------------

1 : System.UnauthorizedAccessException

----------------------------------------

System.UnauthorizedAccessException: You don't have appropriate permission to perform this operation.

   at Huxley.MsOffice.Integration!0x060001de!Microsoft.Office.Interop.Outlook.Attachments.Add(Object Source, Object Type, Object Position, Object DisplayName)

   at Huxley.MsOffice.Integration!0x06000079!MYOB.Huxley.MsOffice.Integration.OutlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String subject, String body, EmailResourceType resourceType, String documentNumber, IEnumerable`1 attachments) +0x190

   at Huxley.UI.Controllers!0x06003110!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.<>c__DisplayClass46_0.<SendMessageWithForm>b__1() +0x68

   at Huxley.UI.Controllers!0x06002084!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.TrackAndPerformSendEmailLocally(Func`1 sendEmail, EmailResourceType resourceType, Nullable`1 companyDataFileId, Nullable`1 invoiceId) +0x3e

   at Huxley.UI.Controllers!0x0600207c!MYOB.Huxley.UI.Controllers.Helpers.NotificationHelper.SendMessageWithForm(String to, String subject, String body, String pdfFileName, EmailResourceType resourceType, FormTemplateDefinition formTemplateDefinition, FormPrintingParams formPrintingParams, IEnumerable`1 attachments, Nullable`1 entityUid, LayoutType layoutType, String documentNumber, Boolean useSms, String toName, String toPhoneNumber, String formattedAmount) +0x1bb

   at Huxley.UI.Controllers!0x06001452!MYOB.Huxley.UI.Controllers.Sales.PrintInvoicesEmailController.SendEmailsOld(NotificationHelper notificationHelper) +0x76

   at Huxley.UI.Forms!0x060041b5!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.<>c__DisplayClass21_0.<OnOkClicked>b__5() +0x0

   at Huxley.UI.Forms!0x0600274e!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContainer.PerformAction(Action methodToPerform) +0x16

   at Huxley.UI.Forms!0x060041b4!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.<>c__DisplayClass21_0.<OnOkClicked>b__3() +0x0

   at Huxley.UI.Controllers!0x06001453!MYOB.Huxley.UI.Controllers.Sales.PrintInvoicesEmailController.PerformActionWithWaitAnimationSpinner(Action action, Boolean disableForm) +0x1a

   at Huxley.UI.Forms!0x06002bb5!MYOB.Huxley.UI.Forms.Sales.PrintInvoicesEmailView.OnOkClicked(ButtonClickedArgs args) +0x18f

   at Huxley.UI.Forms!0x06002b86!MYOB.Huxley.UI.Forms.Sales.PrintInvoices.OnOkClicked(ButtonClickedArgs args) +0x6f

   at Huxley.UI.Forms!0x0600242f!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12

   at Huxley.UI.Forms!0x060023a9!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnOk_Click(Object sender, EventArgs e) +0x30

   at System.Windows.Forms!0x06001169!System.Windows.Forms.Control.OnClick(EventArgs e) +0x19

   at DevExpress.XtraEditors.v17.1!0x06000d4f!DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) +0x2e

   at DevExpress.XtraEditors.v17.1!0x06000d48!DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) +0x1d

   at System.Windows.Forms!0x06001250!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184

   at System.Windows.Forms!0x06001260!System.Windows.Forms.Control.WndProc(Message& m) +0x49f

   at DevExpress.Utils.v17.1!0x06002708!DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) +0x2e

   at DevExpress.XtraEditors.v17.1!0x06000256!DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) +0x0

   at System.Windows.Forms!0x060063eb!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0

   at System.Windows.Forms!0x060063ee!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e

   at System.Windows.Forms!0x0600314d!System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25

==========

MODULE: DevExpress.Utils.v17.1 => DevExpress.Utils.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:b8c34c059b804930811d5f6d50999b6c; A:1

MODULE: DevExpress.XtraEditors.v17.1 => DevExpress.XtraEditors.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:6df94e55f5bd4444b910d4b2a37076a4; A:1

MODULE: Huxley.MsOffice.Integration => Huxley.MsOffice.Integration, Version=2024.4.1.5, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:184cb9e6ff384c01a23e31ff32aa6e4a; A:1

MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2024.4.1.5, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:af23ba206e914c29b5e1f170bb1c2e53; A:1

MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2024.4.1.5, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:1b7fbfcb02154eeda26176c6df017832; A:1

MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:4f38ceb21d204c87b3ee28d3e54c7dcb; A:1

1 Reply

  • Zappy's avatar
    Zappy
    Valued Partner

    Just to test something, have you tried lowering the security in Outlook?

     

    Zappy +61407744914