sendmail

127 views
Skip to first unread message

Ronaldo Geniais

unread,
Jun 16, 2025, 12:36:27 PMJun 16
to Harbour Users
I haven't solved this issue yet.

Remember that I test it on other machines and it works,
it just doesn't work on my machine, it must be some environmental problem.

When I run:

If oSocket:Connect( cSMTP, nPort ) // on my machine, it returns .F. that is, it doesn't connect,
but on other machines it connects, no matter the value of CSMTP and nPort, because as I said
using the same values ​​on other machines works, but on my machine it doesn't work
when displaying:

Msgdebug(oSocket:GetLastError()) // returns ""
Is there another way to check this?


Usando sendmail,
ocorre um erro que nao consigo identificar.
Lembrando que eu faco o teste em outras maquinas e funciona,
so nao funciona na minha maquina, deve ser algum problema de ambiente.
Quando eu executo :
If   oSocket:Connect( cSMTP, nPort )    //  em minha maquina, retorna .F. ou seja nao conecta,
mas em outras maquinas conecta,  nao importa o valor de CSMTP e nPort, pois como falei
usando os mesmos valores em outras maquinas funciona, mas na minha maquina nao funciona
ao exibir  :   Msgdebug(oSocket:GetLastError())   //  retorna ""
Ha outro meio de verificar isso ?

Lautaro Moreira

unread,
Jun 16, 2025, 12:44:49 PMJun 16
to harbou...@googlegroups.com, Ronaldo Geniais
Hola Ronaldo

Firewall? Is your IP blacklisted?

It could also be that the password contains the "@" character; if so,
you won't be able to connect.

I hope this sheds some light on this.

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

¿ Firewall ? , ¿ BlackList de tu ip ?

Tambien puede ser que la password contenga el character "@" , si es asi,
no se conectara.

Espero te de alguna luz


Saludos

Lautaro Moreira

Francesco Perillo

unread,
Jun 16, 2025, 2:29:18 PMJun 16
to harbou...@googlegroups.com
Do you have local firewall active?
A blocking rule on the router?
Is the smtp server internal or in internet?
Other machines... in the same subnet? In other subnets?




--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/93cd9d2c-7eef-482b-9c8a-93e01aa13ed8n%40googlegroups.com.

Ronaldo Geniais

unread,
Jun 16, 2025, 5:33:06 PMJun 16
to Harbour Users
Guys, thank you for the interaction. The problem occurs with the connection to the SMTP, before authentication, so it has nothing to do with the password; the same account and password configuration works on other machines on the same network. I don't know what was meant by internal or external SMTP; the email is with the email provider (external). Since the connection fails with the Socket:Connect(cSMTP, nPort), I think Socket:GetLastError() should return the reason for the failure, but it doesn't. I am having to compile the system on my machine and run the application on another machine because on mine, it simply does not send the email; as I said, everything is with the same configuration. I did a test with the same configurations using an example from the samples/advanced/multiplemail directory, and it works normally. Am I going to have to reinstall Windows on my machine?

Francesco Perillo

unread,
Jun 16, 2025, 5:51:57 PMJun 16
to harbou...@googlegroups.com

Ronaldo, it is very difficult to help...
If i had to debug your situation i'd start from the network using the telnet program...
From command prompt type
Telnet csmtp nport where you should put the content of the variables, so for example
Telnet smtp.myprovider.br 25
If telnet is not installed, install it.

Btw, can you tell us the values of those 2 variables?


Francesco Perillo

unread,
Jun 16, 2025, 5:58:18 PMJun 16
to harbou...@googlegroups.com
If telnet doesn't connect you should understand where the packet is blocked.
Are the other workstation using the public ip address of your wokstation? Using the same default gateway?


Can you create a 10 lines program with just the commands to send the email ?

As the postmaster of a 3000+ users mailserver that is also used to programmatically send emails from software, i have seen hundreds types of config errors...
Reply all
Reply to author
Forward
0 new messages