Email after closing timeout error

Help needed,

samba keep throwing this error. followed (2.4.12.e. How to Send Reports as email At End of Work Period? – SambaPOS Knowledgebase)

the error as below:

[Exception Info 1]

Top-level Exception
Type:        System.AggregateException
Message:     One or more errors occurred.
Source:      Samba.Infrastructure
Stack Trace: at Samba.Infrastructure.Helpers.Retry.Do[T](Func`1 action, TimeSpan retryInterval, Int32 retryCount)
   at Samba.Infrastructure.Helpers.Retry.Do(Action action, TimeSpan retryInterval, Int32 retryCount)
   at Samba.Services.Implementations.EMailService.SendEmail(String smtpServerAddress, String smtpUser, String smtpPassword, Int32 smtpPort, String toEmailAddress, String ccEmailAddresses, String fromEmailAddress, String subject, String body, String fileName, Boolean deleteFile, Boolean bypassSslErrors, Int32 retryCount, Int32 retryMinutes)

Inner Exception 1
Type:        System.Net.Mail.SmtpException
Message:     The operation has timed out.
Source:      System
Stack Trace: at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at Samba.Services.Implementations.EMailService.InternalSendEmail(String smtpUser, String smtpPassword, Int32 smtpPort, String toEmailAddress, String ccEmailAddresses, String fromEmailAddress, String subject, String body, String fileName, Boolean bypassSslErrors, MailMessage mail, SmtpClient smtpServer)
   at Samba.Services.Implementations.EMailService.<>c__DisplayClass2_0.<SendEmail>b__0()
   at Samba.Infrastructure.Helpers.Retry.<>c__DisplayClass0_0.<Do>b__0()
   at Samba.Infrastructure.Helpers.Retry.Do[T](Func`1 action, TimeSpan retryInterval, Int32 retryCount)

Please provide more info for us to help out

E.g. what email client etc? What are you trying to email.
Screenshots of the set up and rules would help as well.

The message “The operation has timed out.” for SmtpException would indicate that the client (SambaPOS) was unable to open a connection to the SMTP server in the allotted time (default is 100s iirc).

Check and make sure the server name and port are configured properly. If they appear to be, try a free email client and see if you can configure it to connect to the email server and send/receive emails - this will help rule out an issue on SambaPOS’ side.

1 Like