Failure send email on samba pos 4

hi
i have problem on send email for Work end report


Action settings for smtp

Rule Setting

Log
[General Info]

Application: SambaPOS
Version: 4.1.82
Region: en
DB: TX
Machine: DESKTOP-FHVQM1V
User: mpmah
Date: 16/09/2017
Time: 23:50

User Explanation:

mpmah said “”

[Exception Info 1]

Top-level Exception
Type: System.Net.Mail.SmtpException
Message: Failure sending mail.
Source: System
Stack Trace: at System.Net.Mail.SmtpClient.Send(MailMessage message)
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)

Inner Exception 1
Type: System.IO.IOException
Message: Unable to read data from the transport connection: net_io_connectionclosed.
Source: System
Stack Trace: at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)


[Assembly Info]

PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
System.Configuration, Version=4.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
Samba.Presentation.Common, Version=1.0.0.0
Samba.Domain, Version=1.0.0.0
PresentationCore, Version=4.0.0.0
DevExpress.Xpf.Core.v14.1, Version=14.1.6.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
System.Core, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
FastButton, Version=1.0.0.0

what i get from that, it seems your email is blocked try port 587 instead of 465 and if that doesn’t work try setting “bypass ssl error” to false or blank, also(you probably already did this) check if password is entered correctly

1 Like

how to see port blocked or not…? and i have try the to set The Bypass SSl error and stil got same problem

set port 587 on sambapos. And make sure your firewall on the router not blocking it.

how to set port on samba pos?

Ma pretty sure you need to go into google Mail and enable non oauth applications.

Inside the action to send email set the port to 587.


Now go to your firewall settings on the router and forward the port to the sambapos server ip.
See example on my router

You shouldn’t need to open ports on your firewall to send emails!
That is what you would do if the am to server was your samba server and needed access remotely offsite.
You terminals and samba server are lan side.
Port forwarding/router firewall are for WAN -->LAN traffic (incoming from Internet to local network.

Gmail is hard to get working because of security.
You need to check port and enable insecure sending within gmail to allow non OAuth devices.

2 Likes

all i have try and still failure
:confounded:

You havnt tried everything because many people use Gmail with SambaPOS and most of them had issues with security. They had to turn off several security measures from GMAIL to get it to work.

let me check my gmail security

I use outlook for sending an email. So far no issue with it.