SMTP_CLIENT Problems

Begonnen von brendang, 15. März 2016, 07:22:43

Vorheriges Thema - Nächstes Thema

0 Mitglieder und 1 Gast betrachten dieses Thema.

brendang

Hi

To start, thanks for the great functions.

I am not able to get the SMTP_CLIENT working. The client get stuck at "step = 30" where the program is waiting for "rcv_state = 220". I cant see where the FB creates a connection with the SMTP server. I would expect to see a "snd_test = 'openssl s_client...'" or something like that before you receive the state = 220.

Where does the connection happen?

Thanks

peewit

which email account you use?
one with SSL / TLS encryption

oscat network smtp_client does not support encryption

https://www.smart-mail.de/
This works even without encryption (and is free)


brendang

Thanks

I will have a look at it.

Apparently Stunnel will work with Oscat so that I can send to SSL servers.

learnetk

Hi Brendang,
I have the same issue..
Did u succed with sTunnel...Can you please describe how you did that.

Thanks

Ksanteri

Hello!
I'm trying to run SMTP_CLIENT on SoMachine with TM241C241 as CPU.
SMTP_CLIENT returns an errors:
ERROR_T: 1.
ERROR_C: 65280.
I think the problem is in SERVER variable: 'akuankanvarasto%smart-mail.de:aku12354@smtp.smart-mail.de:25'.
Could anyone check the syntax? Peewit?))
I neither was able to send an email with the same email-address (akuankanvarasto@smart-mail.de) by cmd.exe - see attached pictures.
But I'm able to send message by cmd.exe with akuankanvarasto@gmail.com, which is unfortunately SSL encrypted

[gelöscht durch Administrator]

Ksanteri

By the way, Brendang, did you get Stunnel working with OSCAT?

peewit

ERROR_T: 1.              = DNS_CLIENT (use UDP)
ERROR_C: 65280.     = 0x0000FF00   = Receive Timeout

the problem has nothing to do with the SMTP .
probably works no communication


Ksanteri

Thank you Peewit!
I'll check the communication.

learnetk

Hi Ksanteri
Did u get it working ??

Thanks

Ksanteri

Hi learnetk!
Unfortunately I didn't.
It seems to me, as Peewit told, I have a communication problem I am not able to locate. Our local network sees the CPU (it is TM241C241 by Schneider E in my case), but the CPU is not able to connect to DNS server for some reason. I have tried DNS_CLIENT module, but it returns nothing (no mistakes, no results), like there is no connection to internet at all.((
I'm waiting the one person from Schneider E, who is now on vacation, for possible help with the communication problem...
How is it going in your case?

learnetk

Hi Ksanteri,
my case is quite simialar.

If i use the google DNS(8.8.8.8) then i get the same Error Id as you. But if i try using my DNS of my organization its different error Error_C = 16#0000FF00 and Error_T = 16#01.

Please do write if u get a breakthrough
:)

Ksanteri

Interesting, because I have tried our company DNS-server as well. The error was the same. May I have a look at your program? Can you send me a picture?

learnetk

here are some of the screenshots with various trials. I also tried out the library with my
Raspberry Pi at home, i got a different error Error_T = 5 and Error_C (i forget the step no but i crossed the Step 30).
I tried with the same Pi at my office i get the same old error Error_T = 2 and Error_C =16#FF000000.


[gelöscht durch Administrator]

Ksanteri

Hi learnetk!
Thank you for the pictures!
Peewit, what can you say about those errors?
By the way, learnetk, if I were you, I would change your email account password on something without "%"-mark. It probably could cause SMTP-mistakes I think.

learnetk

Hi,
I changed the password and tried..but the results were the same.