Driver SendMail troca caracteres especiais por interrogação

Bom dia Srs

Estou usando o Driver SendMail para enviar mensagens usando um email da conta gmail e não estou conseguinto exibir caracteres especiais conforme foto abaixo

Podem me ajudar? Desde dá agradeço

1 Like

Olá @vmarqueslourenco,

Anexe o log do driver com um envio de e-mail, para analise.

1 Like
08/02/2022 10:46:05.223 (445C) DRIVER	Driver name:  Driver ELIPSE SendMail v2.0.4 (IOKitLib v2.0.36)
08/02/2022 10:46:05.223 (445C) DRIVER	IOKitLib version 2.0.36 of Aug  6 2014 15:30:17
08/02/2022 10:46:06.221 (445C) DRIVER	OpenSSL context created with success!
08/02/2022 10:46:06.221 (445C) DRIVER	OpenSSL created with success!
08/02/2022 10:46:06.222 (445C) DRIVER	WSAStartup processed with success!
08/02/2022 10:46:06.222 (445C) DRIVER	drvStartComm(0,0,0,0)
08/02/2022 10:46:06.222 (445C) DRIVER	Current configuration (21 parameters):
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.GiveUpTries = 1
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Log.Enable = 1
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Log.Filename = 'C:\eeLogs\SendMail_%DATE%.log'
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.RecoverEnable = 1
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.RecoverPeriodSec = 20
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Serial.Baudrate = 9600
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Serial.DataBits = 8
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Serial.Port = 1
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.TimeoutMs = 2000
08/02/2022 10:46:06.222 (445C) DRIVER	  - IO.Type = 'None'
08/02/2022 10:46:06.222 (445C) DRIVER	  - SendMail.EmailAddress = ''
08/02/2022 10:46:06.222 (445C) DRIVER	  - SendMail.SmtpServer = ''
08/02/2022 10:46:06.222 (445C) DRIVER	  - SendMail.UserName = ''
08/02/2022 10:46:06.222 (445C) DRIVER	  - 8 parameters with value = 0 were omitted
08/02/2022 10:46:06.222 (445C) DRIVER	I/O Interface was configured as 'NONE', the driver is OFFLINE!!!
08/02/2022 10:46:22.583 (445C) DRIVER	drvStopComm(0,0,0,0)
08/02/2022 10:46:22.589 (445C) DRIVER	OpenSSL closed with success!
08/02/2022 10:46:22.589 (445C) DRIVER	OpenSSL context closed with success!
08/02/2022 10:46:22.590 (445C) DRIVER	WSACleanup processed with success!
==============================================================================

08/02/2022 10:46:27.561 (20D8) DRIVER	Driver name:  Driver ELIPSE SendMail v2.0.4 (IOKitLib v2.0.36)
08/02/2022 10:46:27.561 (20D8) DRIVER	IOKitLib version 2.0.36 of Aug  6 2014 15:30:17
08/02/2022 10:46:28.536 (20D8) DRIVER	OpenSSL context created with success!
08/02/2022 10:46:28.536 (20D8) DRIVER	OpenSSL created with success!
08/02/2022 10:46:28.536 (20D8) DRIVER	WSAStartup processed with success!
08/02/2022 10:46:28.536 (20D8) DRIVER	drvStartComm(0,0,0,0)
08/02/2022 10:46:28.536 (20D8) DRIVER	Current configuration (21 parameters):
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.GiveUpTries = 1
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.Log.Enable = 1
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.Log.Filename = 'C:\eeLogs\SendMail_%DATE%.log'
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.RecoverEnable = 1
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.RecoverPeriodSec = 20
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.Serial.Baudrate = 9600
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.Serial.DataBits = 8
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.Serial.Port = 1
08/02/2022 10:46:28.536 (20D8) DRIVER	  - IO.TimeoutMs = 2000
08/02/2022 10:46:28.537 (20D8) DRIVER	  - IO.Type = 'None'
08/02/2022 10:46:28.537 (20D8) DRIVER	  - SendMail.EmailAddress = ''
08/02/2022 10:46:28.537 (20D8) DRIVER	  - SendMail.SmtpServer = ''
08/02/2022 10:46:28.537 (20D8) DRIVER	  - SendMail.UserName = ''
08/02/2022 10:46:28.537 (20D8) DRIVER	  - 8 parameters with value = 0 were omitted
08/02/2022 10:46:28.537 (20D8) DRIVER	I/O Interface was configured as 'NONE', the driver is OFFLINE!!!
08/02/2022 10:47:11.188 (20D8) TAG	Tag(0.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.188 (20D8) TAG	==> (0.000) Tag(0.0.0.0).WriteValue (10:47:11.188) 'supervisorioindustrial@gmail.com' = SUCCESS
08/02/2022 10:47:11.188 (20D8) TAG	<== (0.000) Tag(0.0.0.0).ReadValue = (10:47:11.188) 'supervisorioindustrial@gmail.com'
08/02/2022 10:47:11.188 (20D8) TAG	Tag(0.1.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.188 (20D8) TAG	==> (0.000) Tag(0.1.0.0).WriteValue (10:47:11.188) 'joansantos639@gmail.com, vmarques@outlook.com' = SUCCESS
08/02/2022 10:47:11.188 (20D8) TAG	<== (0.000) Tag(0.1.0.0).ReadValue = (10:47:11.188) 'joansantos639@gmail.com,vmarques@outlook.com'
08/02/2022 10:47:11.188 (20D8) TAG	Tag(0.2.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.188 (20D8) TAG	==> (0.000) Tag(0.2.0.0).WriteValue (10:47:11.188) 'joansantos639@gmail.com, vmarques@outlook.com' = SUCCESS
08/02/2022 10:47:11.188 (20D8) TAG	<== (0.000) Tag(0.2.0.0).ReadValue = (10:47:11.188) 'joansantos639@gmail.com,vmarques@outlook.com'
08/02/2022 10:47:11.203 (20D8) TAG	Tag(1.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.203 (20D8) TAG	==> (0.000) Tag(1.0.0.0).WriteValue (10:47:11.203) 'Relatorio diario da producao' = SUCCESS
08/02/2022 10:47:11.203 (20D8) TAG	<== (0.000) Tag(1.0.0.0).ReadValue = (10:47:11.203) 'Relatorio diario da producao'
08/02/2022 10:47:11.203 (20D8) TAG	Tag(2.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.203 (20D8) TAG	==> (0.000) Tag(2.0.0.0).WriteValue (10:47:11.203) 'Relatório diário da produção' = SUCCESS
08/02/2022 10:47:11.203 (20D8) TAG	<== (0.000) Tag(2.0.0.0).ReadValue = (10:47:11.203) 'Relatório diário da produção'
08/02/2022 10:47:11.203 (20D8) TAG	Tag(4.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.203 (20D8) TAG	==> (0.000) Tag(4.0.0.0).WriteValue (10:47:11.203) 'C:\Users\VMStudio4\Desktop\vmstudio4\22102021 - Supervisorio Geral - STRUFALDI\Relatorio.pdf' = SUCCESS
08/02/2022 10:47:11.219 (20D8) DRIVER	Socket created with success!
08/02/2022 10:47:11.219 (20D8) DRIVER	Connecting in host  port 0
08/02/2022 10:47:11.219 (20D8) DRIVER	CMailSocket connect() error: WSAGetLastError = 0x00002741 (WSAEADDRNOTAVAIL)
08/02/2022 10:47:11.235 (20D8) TAG	<== (0.017) Tag(4.0.0.0).ReadValue = ERROR (hr=80004005)
08/02/2022 10:47:11.235 (20D8) TAG	Tag(5.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.235 (20D8) TAG	==> (0.000) Tag(5.0.0.0).WriteValue (10:47:11.235) 'supervisorioindustrial@gmail.com' = SUCCESS
08/02/2022 10:47:11.235 (20D8) DRIVER	ProcessTagReading() error: Invalid N1 parameter.
08/02/2022 10:47:11.235 (20D8) TAG	<== (0.000) Tag(5.0.0.0).ReadValue = ERROR (hr=8004E008)
08/02/2022 10:47:11.235 (20D8) TAG	Tag(6.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.235 (20D8) TAG	==> (0.000) Tag(6.0.0.0).WriteValue (10:47:11.235) '11012021' = SUCCESS
08/02/2022 10:47:11.235 (20D8) DRIVER	ProcessTagReading() error: Invalid N1 parameter.
08/02/2022 10:47:11.235 (20D8) TAG	<== (0.000) Tag(6.0.0.0).ReadValue = ERROR (hr=8004E008)
08/02/2022 10:47:11.235 (20D8) TAG	Tag(7.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.235 (20D8) TAG	==> (0.000) Tag(7.0.0.0).WriteValue (10:47:11.235) 'Relatório diário da produção' = SUCCESS
08/02/2022 10:47:11.235 (20D8) TAG	<== (0.000) Tag(7.0.0.0).ReadValue = (10:47:11.235) 'Relatório diário da produção'
08/02/2022 10:47:11.250 (20D8) TAG	Tag(8.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.250 (20D8) TAG	==> (0.000) Tag(8.0.0.0).WriteValue (10:47:11.250) 'supervisorioindustrial@outlook.com' = SUCCESS
08/02/2022 10:47:11.250 (20D8) TAG	<== (0.000) Tag(8.0.0.0).ReadValue = (10:47:11.250) 'supervisorioindustrial@outlook.com'
08/02/2022 10:47:11.250 (20D8) TAG	Tag(9.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.250 (20D8) TAG	==> (0.000) Tag(9.0.0.0).WriteValue (10:47:11.250) 'smtp.gmail.com' = SUCCESS
08/02/2022 10:47:11.250 (20D8) TAG	<== (0.000) Tag(9.0.0.0).ReadValue = (10:47:11.250) 'smtp.gmail.com'
08/02/2022 10:47:11.250 (20D8) TAG	Tag(10.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.250 (20D8) TAG	==> (0.000) Tag(10.0.0.0).WriteValue (10:47:11.250) 587 = SUCCESS
08/02/2022 10:47:11.250 (20D8) TAG	<== (0.000) Tag(10.0.0.0).ReadValue = (10:47:11.250) 587
08/02/2022 10:47:11.266 (20D8) TAG	Tag(3.0.0.0).Validate = SUCCESS (type=10;flags=8)
08/02/2022 10:47:11.266 (20D8) DRIVER	Socket already created!!
08/02/2022 10:47:11.266 (20D8) DRIVER	Connecting in host smtp.gmail.com port 587
08/02/2022 10:47:11.344 (20D8) DRIVER	Socket connected with success!
08/02/2022 10:47:11.344 (20D8) DRIVER	Elipse connected to Mail Server
08/02/2022 10:47:11.698 (20D8) IO	RX: 220 smtp.gmail.com ESMTP k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:11.699 (20D8) IO	TX: EHLO CST01HV01[0D][0A]
08/02/2022 10:47:11.873 (20D8) IO	RX: 250-smtp.gmail.com at your service, [187.45.24.35][0D][0A]250-SIZE 35882577[0D][0A]250-8BITMIME[0D][0A]250-STARTTLS[0D][0A]250-ENHANCEDSTATUSCODES[0D][0A]250-PIPELINING[0D][0A]250-CHUNKING[0D][0A]250 SMTPUTF8[0D][0A]
08/02/2022 10:47:11.873 (20D8) DRIVER	OK: Authentication Method: STARTTLS
08/02/2022 10:47:11.873 (20D8) IO	TX: STARTTLS[0D][0A]
08/02/2022 10:47:12.046 (20D8) IO	RX: 220 2.0.0 Ready to start TLS[0D][0A]
08/02/2022 10:47:12.188 (20D8) DRIVER	OK: Security SSL/TLS connection is enabled!!
08/02/2022 10:47:12.188 (20D8) IO	TX: EHLO CST01HV01[0D][0A]
08/02/2022 10:47:12.360 (20D8) IO	RX: 250-smtp.gmail.com at your service, [187.45.24.35][0D][0A]250-SIZE 35882577[0D][0A]250-8BITMIME[0D][0A]250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH[0D][0A]250-ENHANCEDSTATUSCODES[0D][0A]250-PIPELINING[0D][0A]250-CHUNKING[0D][0A]250 SMTPUTF8[0D][0A]
08/02/2022 10:47:12.360 (20D8) DRIVER	OK: Authentication Method: AUTH LOGIN
08/02/2022 10:47:12.360 (20D8) IO	TX: AUTH LOGIN[0D][0A]
08/02/2022 10:47:12.533 (20D8) IO	RX: 334 VXNlcm5hbWU6[0D][0A]
08/02/2022 10:47:12.533 (20D8) IO	TX: c3VwZXJ2aXNvcmlvaW5kdXN0cmlhbEBnbWFpbC5jb20=[0D][0A]
08/02/2022 10:47:12.705 (20D8) IO	RX: 334 UGFzc3dvcmQ6[0D][0A]
08/02/2022 10:47:12.705 (20D8) IO	TX: MTEwMTIwMjE=[0D][0A]
08/02/2022 10:47:13.113 (20D8) IO	RX: 235 2.7.0 Accepted[0D][0A]
08/02/2022 10:47:13.113 (20D8) DRIVER	OK: Authentication successful
08/02/2022 10:47:13.113 (20D8) IO	TX: MAIL FROM:<supervisorioindustrial@outlook.com>[0D][0A]
08/02/2022 10:47:13.287 (20D8) IO	RX: 250 2.1.0 OK k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:13.287 (20D8) IO	TX: RCPT TO:<supervisorioindustrial@gmail.com>[0D][0A]
08/02/2022 10:47:13.458 (20D8) IO	RX: 250 2.1.5 OK k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:13.458 (20D8) IO	TX: RCPT TO:<joansantos639@gmail.com>[0D][0A]
08/02/2022 10:47:13.633 (20D8) IO	RX: 250 2.1.5 OK k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:13.633 (20D8) IO	TX: RCPT TO:<vmarques@outlook.com>[0D][0A]
08/02/2022 10:47:13.807 (20D8) IO	RX: 250 2.1.5 OK k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:13.807 (20D8) IO	TX: RCPT TO:<joansantos639@gmail.com>[0D][0A]
08/02/2022 10:47:13.978 (20D8) IO	RX: 250 2.1.5 OK, duplicate recipients will be consolidated. k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:13.978 (20D8) IO	TX: RCPT TO:<vmarques@outlook.com>[0D][0A]
08/02/2022 10:47:14.152 (20D8) IO	RX: 250 2.1.5 OK, duplicate recipients will be consolidated. k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:14.152 (20D8) IO	TX: DATA[0D][0A]
08/02/2022 10:47:14.812 (20D8) IO	RX: 354  Go ahead k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:14.812 (20D8) IO	TX: From: "Relat[F3]rio di[E1]rio da produ[E7][E3]o" <supervisorioindustrial@outlook.com>[0D][0A]To: <supervisorioindustrial@gmail.com>[0D][0A]Cc: <joansantos639@gmail.com>,<vmarques@outlook.com>[0D][0A]Bcc:[0D][0A]Importance: high[0D][0A]Subject: Relatorio diario da producao[0D][0A]MIME-Version: 1.0[0D][0A]Content-Type: multipart/mixed;[0D][0A][09]boundary="-----------050001050608030905030503"[0D][0A]This is a multi-part message in MIME format.[0D][0A][0D][0A]-------------050001050608030905030503[0D][0A]Content-Type: text/plain;[0D][0A]Content-Transfer-Encoding: 7bit[0D][0A][0D][0A]Relat[F3]rio di[E1]rio da produ[E7][E3]o
08/02/2022 10:47:14.812 (20D8) DRIVER	Sending Attachment C:\Users\VMStudio4\Desktop\vmstudio4\22102021 - Supervisorio Geral - STRUFALDI\Relatorio.pdf
08/02/2022 10:47:14.814 (20D8) IO	TX: [0D][0A]-------------050001050608030905030503[0D][0A]Content-Type: application/octet-stream;[0D][0A] name="Relatorio.pdf"[0D][0A]Content-Disposition: attachment;[0D][0A] filename="Relatorio.pdf"[0D][0A]Content-Transfer-Encoding: base64[0D][0A][0D][0A][0D][0A]-------------050001050608030905030503--[0D][0A][0D][0A].[0D][0A]
08/02/2022 10:47:16.286 (20D8) IO	RX: 250 2.0.0 OK  1644328035 k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:16.286 (20D8) IO	TX: QUIT[0D][0A]
08/02/2022 10:47:16.458 (20D8) IO	RX: 221 2.0.0 closing connection k6sm5303470oop.28 - gsmtp[0D][0A]
08/02/2022 10:47:16.458 (20D8) DRIVER	Elipse disconnected from Mail Server
08/02/2022 10:47:16.458 (20D8) DRIVER	SSLDisconnect() error: SSL_shutdown() failed:
08/02/2022 10:47:16.458 (20D8) DRIVER	OK: Security SSL/TLS connection is disabled!!
08/02/2022 10:47:16.458 (20D8) DRIVER	Socket closed with success!
08/02/2022 10:47:16.458 (20D8) DRIVER	Email sent successfuly
08/02/2022 10:47:16.458 (20D8) TAG	==> (5.193) Tag(3.0.0.0).WriteValue (10:47:11.266) 1 = SUCCESS
08/02/2022 10:47:16.458 (20D8) DRIVER	ProcessTagReading() error: Invalid N1 parameter.
08/02/2022 10:47:16.458 (20D8) TAG	<== (0.000) Tag(3.0.0.0).ReadValue = ERROR (hr=8004E008)

Bom dia @Gabriel Conforme pedido segue log de driver

Olá @vmarqueslourenco,

A versão do Driver utilizada (v2.0.4) suporta caracteres no padrão ANSI (8-bits). Demais caracteres são visíveis apenas no padrão UNICODE (16-bits).

Para contornar essa restrição, foi implementado, a partir da versão 2.0.5 do driver, a possibilidade de ler o conteúdo de um arquivo TXT em UNICODE e enviá-lo no corpo e no assunto do e-mail.

Parâmetros [N] de Endereçamento de Tags PLC


Recomendo baixar, a ultima versão do Driver disponível em nosso site, e utilizar esse recurso.

1 Like

Boa tarde @Gabriel, essa versão do drive no site é a v2.0.12 conforme imagem abaixo,.e alterei o parametro N e não consegui resolver o problema, pode me ajudar? Obrigado

Olá @vmarqueslourenco,

Poderia enviar Prints da configuração e valores colocados nos novos tags, com o N1 igual a 11?

Boa tarde @Gabriel eu utilizei o próprio exemplo que esta no site EKB,

Neste exemplo eu substitui o driversSendMail pelo mais atual, segue prints abaixo com os parametros do email (os unicos que eu alterei o resto eu mantive com os que estão no exemplo)

Segue email recebido com os erros de caracteres especial

Faça um teste enviando esse e-mail para gabriel@elipse.com.br

1 Like

Bom dia @Gabriel Eu acabei de enviar o email para você, pode ser que ele tenha ido para a caixa de SPAM

Att,

Olá @vmarqueslourenco

Faça um teste colocando caracteres especiais no Assunto e no corpo do e-mail.

Abaixo temos “?” apenas no nome do remetente:

De: Relat?rio di?rio da Produ??o <> supervisorioindustrial@gmail.com
Enviada em: quinta-feira, 10 de fevereiro de 2022 09:22
Para: vmarques@outlook.com
Cc: Gabriel, Felipe Gabriel dos Santos (Elipse Software) gabriel@elipse.com.br
Assunto: teste
Prioridade: Alta

1 Like

@Gabriel Esse erro ocorre somente no nome do Remetente, nos outros campos o erro não ocorre

Na atual versão é possível colocar caracteres no padrão UNICODE (16-bits), apenas no assunto e corpo do e-mail.

O campo nome do remetente é no padrão ANSI.

1 Like

Boa tarde @Gabriel , então nesta atual versão não é possível utilizar caracteres especiais no campo nome do remetente, correto?

Olá @vmarqueslourenco,
Pode utilizar no nome do remetente, porém ficará com “?” no lugar.

1 Like