4/14/2021 12:02 PM | |
Joined: 6/10/2015 Last visit: 4/16/2024 Posts: 458 Rating: (91) |
Hi all, on s7 1500 TiA 15.1 I am trying to send an email with TMAIL_C. I am using OUC 6.0 and TMAIL_C 5.0. At this pdf, chapter 3.2, is not mentioned TiA v15. I suppose it is the same as per TiA 13. My CPU has firmware 2.6, I am using TMAIL_QDN_SEC. I have no certificate. On port 25, smtp is refusing (error 80C5). On port 587 is trying but I get error of TMAIL (not TMAIL_C! TMAIL is used innerly instanced by TMAIL_C) 16#8080_0451 - I don't have any reference for this error, not even in the specific instruction errors. I tried to make a secure TLS connection, but error appears that TLS is not supported without certificate (error 80E9). Here is my smtp config: REGION SMTP SERVER #SMTP_SRV.InterfaceId := #IN_HW_ID; #SMTP_SRV.ID := 1;//verify this!??? #SMTP_SRV.ConnectionType := b#16#22;//for FQDN - read documentation #SMTP_SRV.ActiveEstablished := TRUE;//PLC is always client, so it initiates the connection #SMTP_SRV.WatchDogTime := t#1m; #SMTP_SRV.MailServerQDN := #SMTP_SRV_NAME;//'smtp.office365.com.';//the final dot is requested not to get error 80D1 #SMTP_SRV.UserName := 'myemailaddress@mydomain.it'; #SMTP_SRV.PassWord := 'mypw......'; #SMTP_SRV.From.LocalPartPlusAtSign := 'emailaddr@'; #SMTP_SRV.From.FullQualifiedDomainName := 'domain.it'; #SMTP_SRV.RemotePort := #SMTP_SRV_REMOTE_PORT;//for office365 it is port 587 recommended (or port 25) //cfg as unsecure connection - parameters about TLS are ignored #SMTP_SRV.ActivateSecureConn := FALSE; #SMTP_SRV.ExtTLSCapabilities := b#16#0; #SMTP_SRV.TLSServerCertRef := b#16#0; END_REGION Any suggestion? Thank you |
Last edited by: Jen_Moderator at: 04/14/2021 12:50:13Optimized link. B. Edulis |
|
4/14/2021 12:52 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1050)
|
hi BoletusEdulis, the dependance is the projectable FW-version. TMAIL uses the open user communication inside. So the status could also come from the blocks TCON, TSEND, TRCV, etc. But the only Instruction I found with a status like this is T_CONFIG. I´m not sure if this is correct. Have a look in the instance-DB of your call. There you should find the instance of the internal used instructions, so you can figure out where this status comes from. hope this helps, regards, |
FCK WAR! |
|
This contribution was helpful to1 thankful Users |
4/14/2021 2:50 PM | |
Joined: 6/10/2015 Last visit: 4/16/2024 Posts: 458 Rating: (91) |
This is just a reference to a very similar case |
B. Edulis |
|
4/14/2021 4:17 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1050)
|
hi, now I found something: 8080_04xx: Temporarily negative replies from SMTP server. Try again. Details can be found with RFC 5321. Description of TMAIL_C as of version V5.0 the 04xx is a status code from the SMTP-protocoll.: https://en.wikipedia.org/wiki/List_of_SMTP_server_return_codes hope this helps, regards, |
FCK WAR! |
|
Follow us on