Skip to content
logo Knowledgebase

Event log errors when sending emails with Microsoft Outlook or SMTP

Created on  | Last modified on 

Summary

How to troubleshoot different errors when emailing from Sage 50 Accounts or Sage 50 Payroll.

Description

When you try to send emails from your software using Outlook, you can see the error:

'Unable to send all emails. Error with the address. Unknown Error. Check Windows event Log for more details.'

Resolution

First, ensure your version of Microsoft Office is compatible with your Sage software. If you use an incompatible version, your software will fail to send emails.

  1. Select Help then About.
  2. In the Program Details section, check the version number.
  3. Open Microsoft Outlook and click File.
  4. Click Office Account then About Outlook.

To find out if your software is compatible, visit our what is the compatibility of my software with Microsoft Office guide.

 NOTE: If you have Sage 50 Accounts v28 or above, and Outlook 2016 and above, you need to follow different steps first. Follow our Error: 'Unable to send all emails. Error with the address xxx: Unknown..' article. 


Check error message in Windows Event Log

If you receive the error 'Unable to send all emails. Error with the address. Unknown Error. Check Windows event Log for more details.', follow the steps below:

  1. Type Event viewer in the search box on your taskbar.
  2. Click the Event Viewer app, then maximise the window of the app.
  3. Click Windows Logs in the list to the left, then select Application.
  4. Check the section headed Application for any errors where the Source is Sage Report Designer.
  5. Select an error to view its details in the General tab below.

 NOTE: If the error refers to 'MAPI', check your email settings are correct. For help with checking your settings, visit the set up your documents for email article. 


Resolve the error

There are different errors that can appear in the event viewer. Check your error for the text below, then click the relevant option to find out your next steps.

 





▼ SMTP - an error occurred while attempting to establish an SSL or TLS connection

Error occurred window with full details.

To resolve this, check your antivirus or firewall software for any email protection and disable it and attempt to send email again.

If the email sends without error, speak with your local IT support to exclude Sage applications from the email protection element of your security software.

If the issue persists, follow the steps in our Unable to apply Webmail settings using Email Defaults article.



▼ Unable to cast COM object

Error: 'Unable to cast COM object of type Microsoft.Office.Interop.Outlook.ApplicationClass....'

An issue with the Outlook installation causes this error, for example after downgrading outlook.

Run a repair of the Outlook installation, then check you've resolved the issue. For help with doing this, or for further troubleshooting, contact your IT support.


▼ Error: 'System.InvalidOperationException: A recipient must be specified.'

This error occurs when using SMTP settings and there's no email address set up in the Customer Record.

'System.InvalidOperationException: A recipient must be specified.
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at Sage.Email.SMTP.SmtpMailer.SendMail(Email email  SendMailOption whenToSend).'

To resolve this, check the correct email default then add this to their record.

  1. Go to Settings then select Email Defaults
  2. Select the relevant tab for the document you're trying to email. For example, Invoice.
  3. Note which email is in the To: field. For example, Customer Record Email 1. 

This confirms which email field to check in the Customer Record. 

  1. Go to Customers and double-click the relevant Customer Record.
  2. In the Details tab, enter the email address in the Email Settings & Addresses section. Enter in the correct Email field you noted in step 3.
  3. Click Save